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
8cd618af
Commit
8cd618af
authored
Oct 06, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- update version info for ZConfig 2.0
- remove commented-out cruftiness related to a no-longer-supported model
parent
6e9b1996
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
40 deletions
+6
-40
doc/ZConfig/zconfig.tex
doc/ZConfig/zconfig.tex
+6
-40
No files found.
doc/ZConfig/zconfig.tex
View file @
8cd618af
...
...
@@ -20,8 +20,8 @@
\title
{
ZConfig Package Reference
}
%\date{\today}
\release
{
1
.0
}
\setshortversion
{
1
.0
}
\release
{
2
.0
}
\setshortversion
{
2
.0
}
\author
{
Zope Corporation
}
\authoraddress
{
...
...
@@ -56,8 +56,8 @@ Corporation. Any software written in Python is free to use the
ensure compatibility. This software is covered by the Zope Public
License, version 2.0.
The
\module
{
ZConfig
}
package has been tested with Python 2.1
and 2.2.
Python 2.0 is not supported.
The
\module
{
ZConfig
}
package has been tested with Python 2.1
, 2.2, and
2.3.
Python 2.0 is not supported.
\module
{
ZConfig
}
only relies on the Python standard library.
Configurations which use
\module
{
ZConfig
}
are described using
...
...
@@ -78,7 +78,6 @@ Like the \ulink{\module{ConfigParser}}
format, this format supports key-value pairs arranged in sections.
Unlike the
\module
{
ConfigParser
}
format, sections are typed and can be
organized hierarchically.
% XXX and support delegation of value lookup to other sections.
Additional files may be included if needed. Schema components not
specified in the application schema can be imported from the
configuration file. Though both formats are substantially
...
...
@@ -88,8 +87,6 @@ The intent of supporting nested section is to allow setting up the
configurations for loosely-associated components in a container. For
example, each process running on a host might get its configuration
section from that host's section of a shared configuration file.
% XXX Each section may use the delegation syntax to share a base
% configuration with other components of the same type.
The top level of a configuration file consists of a series of
inclusions, key-value pairs, and sections.
...
...
@@ -142,10 +139,9 @@ denote optional parts):
\begin{alltt}
<
\var
{
section-type
}
\optional
{
\var
{
name
}}
>
\end{alltt}
% <\var{section-type} \optional{\var{name}} \optional{(\var{basename})} >
\var
{
section-type
}
and
\var
{
name
}
% and \var{basename}
all have the same syntactic
constraints as key names.
\var
{
section-type
}
and
\var
{
name
}
all have the same syntactic
constraints as key names.
The terminator looks like this:
...
...
@@ -170,40 +166,12 @@ of one or more key-value pairs and sections. For example:
(The indentation is used here for clarity, but is not required for
syntactic correctness.)
% If the \var{basename} component is given for a section header
% (regardless of the presence of the name component), that section
% acquires additional values from another section having \var{basename}
% as its \var{name} and an application-supported type. For example, an
% application that supports the types \code{host} and \code{hostclass}
% might use configuration like this:
% \begin{verbatim}
% <hostclass secondary>
% server-type secondary
% port 1234
% </hostclass>
% <host grendel (secondary)>
% port 2345
% </host>
% \end{verbatim}
% In this application, sections of type \code{host} would be allowed to
% acquire configuration data only from the \code{hostclass} type, so the
% section named \code{grendel} would only be allowed to acquire
% configuration data from a section with type \code{hostclass} and name
% \code{secondary}. The \code{hostclass} section named \code{secondary}
% could in turn acquire additional key-value pairs from some other
% section, based on the allowed type relationships of the
% \code{hostclass} type.
The header for empty sections is similar to that of non-empty
sections, but there is no terminator:
\begin{alltt}
<
\var
{
section-type
}
\optional
{
\var
{
name
}}
/>
\end{alltt}
% <\var{section-type} \optional{\var{name}} \optional{(\var{basename})} />
\subsection
{
Extending the Configuration Schema
}
...
...
@@ -1367,6 +1335,4 @@ schema:
\verbatiminput
{
schema.dtd
}
%\input{oldapi}
\end
{
document
}
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