Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
498cdbb1
Commit
498cdbb1
authored
Oct 10, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fill in a little more.
parent
0ff9a2d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
doc/ZConfig/zconfig.tex
doc/ZConfig/zconfig.tex
+43
-0
No files found.
doc/ZConfig/zconfig.tex
View file @
498cdbb1
...
...
@@ -48,6 +48,14 @@ It only relies on the Python standard library.
\declaremodule
{}{
ZConfig
}
\modulesynopsis
{
Configuration package
}
The main
\module
{
ZConfig
}
package exports a single function:
\begin{funcdesc}
{
load
}{
url
}
Load and return a configuration from a URL or pathname given by
\var
{
url
}
.
\var
{
url
}
may be a URL, absolute pathname, or relative
pathname.
\end{funcdesc}
\section
{
\module
{
ZConfig.Context
}
--- Application context
}
...
...
@@ -66,12 +74,47 @@ It only relies on the Python standard library.
\declaremodule
{}{
ZConfig.Common
}
\modulesynopsis
{
Exceptions
}
\begin{excdesc}
{
ConfigurationError
}
Base class for exceptions specific to the
\module
{
ZConfig
}
package.
All instances provide a
\member
{
message
}
attribute that describes
the specific error.
\end{excdesc}
\begin{excdesc}
{
ConfigurationSyntaxError
}
Exception raised when a configuration source does not conform to the
allowed syntax. In addition to the
\member
{
message
}
attribute,
exceptions of this type offer the
\member
{
url
}
and
\member
{
lineno
}
attributes, which provide the URL and line number at which the error
was detected.
\end{excdesc}
\begin{excdesc}
{
ConfigurationTypeError
}
\end{excdesc}
\begin{excdesc}
{
ConfigurationMissingSectionError
}
\end{excdesc}
\begin{excdesc}
{
ConfigurationConflictingSectionError
}
\end{excdesc}
\section
{
\module
{
ZConfig.ApacheStyle
}
--- Apache-style parser
}
\declaremodule
{}{
ZConfig.ApacheStyle
}
\modulesynopsis
{
Parser for Apache-style configurations
}
The
\module
{
ZConfig.ApacheStyle
}
module implements the configuration
parser. Most applications will not need to use this module directly.
This module provides a single function:
\begin{funcdesc}
{
Parse
}{
file, context, section, url
}
Parse text from the open file object
\var
{
file
}
. The application
context is given as
\var
{
context
}
, the section object that values
and sections should be added to is given as
\var
{
section
}
, and the
URL of the resource being parsed is given in
\var
{
url
}
.
\end{funcdesc}
\section
{
\module
{
ZConfig.Interpolation
}
--- String interpolation
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment