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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
ee1051cf
Commit
ee1051cf
authored
Nov 07, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for loading from file objects.
parent
d47341c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
doc/ZConfig/zconfig.tex
doc/ZConfig/zconfig.tex
+20
-3
No files found.
doc/ZConfig/zconfig.tex
View file @
ee1051cf
...
...
@@ -183,7 +183,7 @@ sections:
\declaremodule
{}{
ZConfig
}
\modulesynopsis
{
Configuration package
}
The main
\module
{
ZConfig
}
package exports
a single function
:
The main
\module
{
ZConfig
}
package exports
two convenience functions
:
\begin{funcdesc}
{
load
}{
url
}
Load and return a configuration from a URL or pathname given by
...
...
@@ -191,6 +191,14 @@ The main \module{ZConfig} package exports a single function:
pathname. Fragment identifiers are not supported.
\end{funcdesc}
\begin{funcdesc}
{
loadfile
}{
file
\optional
{
, url
}}
Load and return a configuration from an opened file object.
If
\var
{
url
}
is omitted, one will be computed based on the
\member
{
name
}
attribute of
\var
{
file
}
, if it exists. If no URL can
be determined, all
\keyword
{
include
}
statements in the configuration
must use absolute URLs.
\end{funcdesc}
\section
{
\module
{
ZConfig.Context
}
--- Application context
}
...
...
@@ -218,8 +226,9 @@ subclassed, so this should not prove to be difficult.
replacement of the class.
\end{classdesc}
The context object offers one method that is intended to be called
once:
The context object offers two methods that are used to load a
configuration. Exactly one of these methods should be called, and it
should be called only once:
\begin{methoddesc}
{
load
}{
url
}
Load and return a configuration object from a resource. The
...
...
@@ -227,6 +236,14 @@ once:
Fragment identifiers are not supported.
\end{methoddesc}
\begin{methoddesc}
{
loadfile
}{
file
\optional
{
, url
}}
Load and return a configuration from an opened file object.
If
\var
{
url
}
is omitted, one will be computed based on the
\member
{
name
}
attribute of
\var
{
file
}
, if it exists. If no URL can
be determined, all
\keyword
{
include
}
statements in the configuration
must use absolute URLs.
\end{methoddesc}
The following methods are defined to be individually overridable by
subclasses; this should suffice for most context specialization.
...
...
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