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
095370ef
Commit
095370ef
authored
Jan 09, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update information on schema components, at least partly.
parent
b56fc3f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
doc/ZConfig/zconfig.tex
doc/ZConfig/zconfig.tex
+7
-16
No files found.
doc/ZConfig/zconfig.tex
View file @
095370ef
...
@@ -242,23 +242,21 @@ key $name
...
@@ -242,23 +242,21 @@ key $name
XXX to be written
XXX to be written
\section
{
Libraries of Schema Components
\label
{
schema
-
library
}}
\section
{
Schema Components
\label
{
schema
-
components
}}
XXX need more explanation
XXX need more explanation
\module
{
ZConfig
}
supports
a library of extensible schema components
\module
{
ZConfig
}
supports
extensible schema components that can be
that can be provided by disparate components, and allows them to be
provided by disparate components, and allows them to be knit together
knit together into concrete schema for applications. Neithe
r
into concrete schema for applications. Neither components no
r
components nor extensions can add additional keys or sections in the
extensions can add additional keys or sections in the application
application
schema.
schema.
A schema
\dfn
{
component
}
is allowed to define new abstract and
A schema
\dfn
{
component
}
is allowed to define new abstract and
section types. It is not allowed to extend application types or
section types. It is not allowed to extend application types or
include additional types in application
-
provided abstract types.
include additional types in application
-
provided abstract types.
Components are identified using a dotted
-
name, similar to a Python
Components are identified using a dotted
-
name, similar to a Python
module name. For example, one component may be
\code
{
zodb.storage
}
.
module name. For example, one component may be
\code
{
zodb.storage
}
.
There is no relationship between the schema component namespace and
the Python module namespace.
A schema component
\dfn
{
extension
}
is allowed to define new abstract
A schema component
\dfn
{
extension
}
is allowed to define new abstract
and section types, extend types provided by the component it extends,
and section types, extend types provided by the component it extends,
...
@@ -980,14 +978,11 @@ non-default data type registry.
...
@@ -980,14 +978,11 @@ non-default data type registry.
for the instance to be used via the public API.
for the instance to be used via the public API.
\end
{
classdesc
}
\end
{
classdesc
}
\begin
{
classdesc
}{
ConfigLoader
}{
schema
\optional
{
, library
}
}
\begin
{
classdesc
}{
ConfigLoader
}{
schema
}
Loader for configuration files. Each configuration file must
Loader for configuration files. Each configuration file must
conform to the schema
\var
{
schema
}
. The
\method
{
load
*()
}
methods
conform to the schema
\var
{
schema
}
. The
\method
{
load
*()
}
methods
return a tuple consisting of the configuration object and a
return a tuple consisting of the configuration object and a
composite handler.
composite handler.
The schema component directory is stored in the directory identified
by
\var
{
library
}
, which defaults to
\constant
{
LIBRARY
_
DIR
}
if
omitted or
\code
{
None
}
.
\end
{
classdesc
}
\end
{
classdesc
}
\begin
{
classdesc
}{
SchemaLoader
}{
\optional
{
registry
}}
\begin
{
classdesc
}{
SchemaLoader
}{
\optional
{
registry
}}
...
@@ -998,10 +993,6 @@ non-default data type registry.
...
@@ -998,10 +993,6 @@ non-default data type registry.
used.
used.
\end
{
classdesc
}
\end
{
classdesc
}
\begin
{
datadesc
}{
LIBRARY
_
DIR
}
Default directory for the schema component library.
\end
{
datadesc
}
\subsection
{
Loader Objects
}
\subsection
{
Loader Objects
}
...
...
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