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
2982d090
Commit
2982d090
authored
Nov 25, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the API slightly: when a named section has been requested and is not
available, raise a more reasonable exception.
parent
c2075900
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
doc/ZConfig/zconfig.tex
doc/ZConfig/zconfig.tex
+5
-1
No files found.
doc/ZConfig/zconfig.tex
View file @
2982d090
...
@@ -472,7 +472,8 @@ The following methods are used in retrieving and managing sections:
...
@@ -472,7 +472,8 @@ The following methods are used in retrieving and managing sections:
Returns a single typed section. The type of the retrieved section
Returns a single typed section. The type of the retrieved section
is given by
\var
{
type
}
. If
\var
{
name
}
is given and not
\code
{
None
}
,
is given by
\var
{
type
}
. If
\var
{
name
}
is given and not
\code
{
None
}
,
the name of the section must match
\var
{
name
}
. If there is no
the name of the section must match
\var
{
name
}
. If there is no
section matching in both name and type,
\exception
{
KeyError
}
is
section matching in both name and type,
\exception
{
ConfigurationMissingSectionError
}
is
raised. If
\var
{
name
}
is not given or is
\code
{
None
}
, there must be
raised. If
\var
{
name
}
is not given or is
\code
{
None
}
, there must be
exactly one child section of type
\var
{
type
}
; that section is
exactly one child section of type
\var
{
type
}
; that section is
returned. If there is more than one section of type
\var
{
type
}
,
returned. If there is more than one section of type
\var
{
type
}
,
...
@@ -535,9 +536,12 @@ support this interface.
...
@@ -535,9 +536,12 @@ support this interface.
\end{excdesc}
\end{excdesc}
\begin{excdesc}
{
ConfigurationMissingSectionError
}
\begin{excdesc}
{
ConfigurationMissingSectionError
}
Raised when a requested named section is not available.
\end{excdesc}
\end{excdesc}
\begin{excdesc}
{
ConfigurationConflictingSectionError
}
\begin{excdesc}
{
ConfigurationConflictingSectionError
}
Raised when a request for a section cannot be fulfilled without
ambiguity.
\end{excdesc}
\end{excdesc}
...
...
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