Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
7cca64f9
Commit
7cca64f9
authored
Feb 20, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the ZConfig.cmdline module.
parent
bddbe41f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
doc/ZConfig/zconfig.tex
doc/ZConfig/zconfig.tex
+35
-0
No files found.
doc/ZConfig/zconfig.tex
View file @
7cca64f9
...
...
@@ -1140,6 +1140,41 @@ The following methods can be used as utilities:
\end
{
methoddesc
}
\section
{
\module
{
ZConfig.cmdline
}
---
Command
-
line override support
}
\declaremodule
{}{
ZConfig.cmdline
}
\modulesynopsis
{
Support for command
-
line overrides for configuration
settings.
}
This module exports an extended version of the
\class
{
ConfigLoader
}
class from the
\refmodule
{
ZConfig.loader
}
module. This provides
support for overriding specific settings from the configuration file
from the command line, without requiring the application to provide
specific options for everything the configuration file can include.
\begin
{
classdesc
}{
ExtendedConfigLoader
}{
schema
}
Construct a
\class
{
ConfigLoader
}
subclass that adds support for
command
-
line overrides.
\end
{
classdesc
}
The following additional method is provided, and is the only way to
provide position information to associate with command
-
line
parameters:
\begin
{
methoddesc
}{
addOption
}{
spec
\optional
{
, pos
}}
Add a single value to the list of overridden values. The
\var
{
spec
}
argument is a value specified, as described for the
\function
{
\refmodule
{
ZConfig
}
.loadConfig
()
}
function. A source
position for the specifier may be given as
\var
{
pos
}
. If
\var
{
pos
}
is specified and not
\code
{
None
}
, it must be a sequence of three
values. The first is the URL of the source
(
or some other
identifying string
)
. The second and third are the line number and
column of the setting. These position information is only used to
construct a
\exception
{
DataConversionError
}
when data conversion
fails.
\end
{
methoddesc
}
\section
{
\module
{
ZConfig.substitution
}
---
String substitution
}
\declaremodule
{}{
ZConfig.substitution
}
...
...
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