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
2788ac9b
Commit
2788ac9b
authored
Oct 03, 2003
by
Phillip J. Eby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added <schema extends=""> feature, w/docs and tests.
parent
92c084c4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
trunk/doc/ZConfig/zconfig.pdf
trunk/doc/ZConfig/zconfig.pdf
+0
-0
trunk/doc/ZConfig/zconfig.tex
trunk/doc/ZConfig/zconfig.tex
+25
-4
No files found.
trunk/doc/ZConfig/zconfig.pdf
View file @
2788ac9b
No preview for this file type
trunk/doc/ZConfig/zconfig.tex
View file @
2788ac9b
...
@@ -281,25 +281,46 @@ The following elements are used to describe a schema:
...
@@ -281,25 +281,46 @@ The following elements are used to describe a schema:
multikey
)*
}
multikey
)*
}
Document element for a
\module
{
ZConfig
}
schema.
Document element for a
\module
{
ZConfig
}
schema.
\begin
{
attributedesc
}{
extends
}{
\datatype
{
space
-
separated
-
url
-
references
}}
A list of URLs of base schemas from which this section type will inherit key,
section, and section type declarations. If omitted, this schema
is defined using only the keys, sections, and section types contained within
the
\element
{
schema
}
element.
\end
{
attributedesc
}
\begin
{
attributedesc
}{
datatype
}{
\datatype
{
basic
-
key
}
\begin
{
attributedesc
}{
datatype
}{
\datatype
{
basic
-
key
}
or
\datatype
{
dotted
-
name
}}
or
\datatype
{
dotted
-
name
}}
The data type converter which will be applied to the value of this
The data type converter which will be applied to the value of this
section. If the value is a
\datatype
{
dotted
-
name
}
that begins
section. If the value is a
\datatype
{
dotted
-
name
}
that begins
with a period, the value of
\attribute
{
prefix
}
will be pre
-
pended,
with a period, the value of
\attribute
{
prefix
}
will be pre
-
pended,
if set.
if set. If any base schemas are listed in the
\attribute
{
extends
}
attribute, the default value for this attribute comes from the base
schemas. If the base schemas all use the same
\attribute
{
datatype
}
, then
that data type will be the default value for the extending schema. If
there are no base schemas, the default value is
\datatype
{
null
}
, which
means that the
\module
{
ZConfig
}
section object will be used unconverted.
If the base schemas have different
\attribute
{
datatype
}
definitions, you
must explicitly define the
\attribute
{
datatype
}
in the extending schema.
\end
{
attributedesc
}
\end
{
attributedesc
}
\begin
{
attributedesc
}{
handler
}{
\datatype
{
basic
-
key
}}
\begin
{
attributedesc
}{
handler
}{
\datatype
{
basic
-
key
}}
\end
{
attributedesc
}
\end
{
attributedesc
}
\begin
{
attributedesc
}{
keytype
}{
\datatype
{
basic
-
key
}}
\begin
{
attributedesc
}{
keytype
}{
\datatype
{
basic
-
key
}
or
\datatype
{
dotted
-
name
}}
The data type converter which will be applied to keys found in
The data type converter which will be applied to keys found in
this section. This can be used to constrain key values in
this section. This can be used to constrain key values in
different ways; two data types which may be especially useful are
different ways; two data types which may be especially useful are
the
\datatype
{
identifier
}
and
\datatype
{
ipaddr
-
or
-
hostname
}
the
\datatype
{
identifier
}
and
\datatype
{
ipaddr
-
or
-
hostname
}
types. If the value is a
\datatype
{
dotted
-
name
}
that begins
types. If the value is a
\datatype
{
dotted
-
name
}
that begins
with a period, the value of
\attribute
{
prefix
}
will be pre
-
pended,
with a period, the value of
\attribute
{
prefix
}
will be pre
-
pended,
if set. The default value is
\datatype
{
basic
-
key
}
.
if set. If any base schemas are listed in the
\attribute
{
extends
}
attribute, the default value for this attribute comes from the base
schemas. If the base schemas all use the same
\attribute
{
keytype
}
, then
that key type will be the default value for the extending schema. If there
are no base schemas, the default value is
\datatype
{
basic
-
key
}
. If the
base schemas have different
\attribute
{
keytype
}
definitions, you must
explicitly define the
\attribute
{
keytype
}
in the extending schema.
\end
{
attributedesc
}
\end
{
attributedesc
}
\begin
{
attributedesc
}{
prefix
}{
\datatype
{
dotted
-
name
}}
\begin
{
attributedesc
}{
prefix
}{
\datatype
{
dotted
-
name
}}
...
@@ -365,7 +386,7 @@ The following elements are used to describe a schema:
...
@@ -365,7 +386,7 @@ The following elements are used to describe a schema:
acquires all key and section declarations. This type does
acquires all key and section declarations. This type does
\emph
{
not
}
automatically implement any abstract section type
\emph
{
not
}
automatically implement any abstract section type
implemented by the named section type. If omitted, this section
implemented by the named section type. If omitted, this section
is defined with only the keys a
re
sections contained within the
is defined with only the keys a
nd
sections contained within the
\element
{
sectiontype
}
element.
\element
{
sectiontype
}
element.
\end
{
attributedesc
}
\end
{
attributedesc
}
...
...
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