Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
Zope
Commits
fef762d9
Commit
fef762d9
authored
22 years ago
by
Fred Drake
Browse files
Options
Download
Email Patches
Plain Diff
Use dotted names for abstract types in ZConfig schema components.
parent
e87f4e10
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
20 deletions
+22
-20
lib/python/ZServer/component.xml
lib/python/ZServer/component.xml
+8
-8
lib/python/ZServer/tests/test_config.py
lib/python/ZServer/tests/test_config.py
+3
-1
lib/python/Zope/Startup/zopeschema.xml
lib/python/Zope/Startup/zopeschema.xml
+3
-3
lib/python/zLOG/component.xml
lib/python/zLOG/component.xml
+8
-8
No files found.
lib/python/ZServer/component.xml
View file @
fef762d9
<component
prefix=
"ZServer.datatypes"
>
<abstracttype
name=
"server"
>
<abstracttype
name=
"
ZServer.
server"
>
<description>
The "server" type is used to describe a single type of server
instance. The value for a server section is an object with the
...
...
@@ -10,7 +10,7 @@
<sectiontype
name=
"http-server"
datatype=
".HTTPServerFactory"
implements=
"server"
>
implements=
"
ZServer.
server"
>
<key
name=
"address"
datatype=
"inet-address"
/>
<key
name=
"force-connection-close"
datatype=
"boolean"
default=
"off"
/>
<key
name=
"webdav-source-clients"
>
...
...
@@ -23,38 +23,38 @@
<sectiontype
name=
"webdav-source-server"
datatype=
".WebDAVSourceServerFactory"
implements=
"server"
>
implements=
"
ZServer.
server"
>
<key
name=
"address"
datatype=
"inet-address"
/>
<key
name=
"force-connection-close"
datatype=
"boolean"
default=
"off"
/>
</sectiontype>
<sectiontype
name=
"persistent-cgi"
datatype=
".PCGIServerFactory"
implements=
"server"
>
implements=
"
ZServer.
server"
>
<key
name=
"path"
datatype=
"existing-file"
/>
</sectiontype>
<sectiontype
name=
"fast-cgi"
datatype=
".FCGIServerFactory"
implements=
"server"
>
implements=
"
ZServer.
server"
>
<key
name=
"address"
datatype=
"socket-address"
/>
</sectiontype>
<sectiontype
name=
"ftp-server"
datatype=
".FTPServerFactory"
implements=
"server"
>
implements=
"
ZServer.
server"
>
<key
name=
"address"
datatype=
"inet-address"
/>
</sectiontype>
<sectiontype
name=
"monitor-server"
datatype=
".MonitorServerFactory"
implements=
"server"
>
implements=
"
ZServer.
server"
>
<key
name=
"address"
datatype=
"inet-address"
/>
</sectiontype>
<sectiontype
name=
"icp-server"
datatype=
".ICPServerFactory"
implements=
"server"
>
implements=
"
ZServer.
server"
>
<key
name=
"address"
datatype=
"inet-address"
/>
</sectiontype>
...
...
This diff is collapsed.
Click to expand it.
lib/python/ZServer/tests/test_config.py
View file @
fef762d9
...
...
@@ -34,7 +34,9 @@ class ZServerConfigurationTestCase(unittest.TestCase):
sio
=
StringIO
.
StringIO
(
"""
<schema>
<import package='ZServer'/>
<multisection name='*' type='server' attribute='servers'/>
<multisection name='*'
type='ZServer.server'
attribute='servers'/>
</schema>
"""
)
schema
=
ZConfig
.
loadSchemaFile
(
sio
)
...
...
This diff is collapsed.
Click to expand it.
lib/python/Zope/Startup/zopeschema.xml
View file @
fef762d9
...
...
@@ -15,7 +15,7 @@
provides the loghandler type used here.
</description>
<key
name=
"level"
datatype=
"zLOG.datatypes.logging_level"
default=
"info"
/>
<multisection
type=
"loghandler"
attribute=
"handlers"
name=
"*"
<multisection
type=
"
zLOG.
loghandler"
attribute=
"handlers"
name=
"*"
required=
"yes"
/>
</sectiontype>
...
...
@@ -253,7 +253,7 @@
<section
type=
"logger"
name=
"trace"
/>
<multisection
type=
"server"
name=
"*"
attribute=
"servers"
/>
<multisection
type=
"
ZServer.
server"
name=
"*"
attribute=
"servers"
/>
<key
name=
"port-base"
datatype=
"integer"
default=
"0"
>
<description>
Base port number that gets added to the specific port numbers
...
...
@@ -261,7 +261,7 @@
</description>
</key>
<multisection
type=
"database"
name=
"*"
attribute=
"databases"
/>
<multisection
type=
"
ZODB.
database"
name=
"*"
attribute=
"databases"
/>
<section
type=
"zoperunner"
name=
"*"
attribute=
"runner"
/>
...
...
This diff is collapsed.
Click to expand it.
lib/python/zLOG/component.xml
View file @
fef762d9
<component
prefix=
"zLOG.datatypes"
>
<abstracttype
name=
"loghandler"
/>
<abstracttype
name=
"
zLOG.
loghandler"
/>
<sectiontype
name=
"base-log-handler"
>
<sectiontype
name=
"
zLOG.
base-log-handler"
>
<description>
Base type for most log handlers. This is cannot be used as a
loghandler directly since it doesn't implement the loghandler
...
...
@@ -13,14 +13,14 @@
</sectiontype>
<sectiontype
name=
"logfile"
datatype=
".FileHandlerFactory"
implements=
"loghandler"
extends=
"base-log-handler"
>
implements=
"
zLOG.
loghandler"
extends=
"
zLOG.
base-log-handler"
>
<key
name=
"path"
required=
"yes"
/>
<key
name=
"format"
default=
"------\n%(asctime)s %(message)s"
datatype=
".log_format"
/>
</sectiontype>
<sectiontype
name=
"syslog"
datatype=
".SyslogHandlerFactory"
implements=
"loghandler"
extends=
"base-log-handler"
>
implements=
"
zLOG.
loghandler"
extends=
"
zLOG.
base-log-handler"
>
<key
name=
"facility"
default=
"user"
datatype=
".syslog_facility"
/>
<key
name=
"address"
datatype=
"socket-address"
default=
"localhost:514"
/>
<key
name=
"format"
default=
"%(message)s"
...
...
@@ -28,14 +28,14 @@
</sectiontype>
<sectiontype
name=
"win32-eventlog"
datatype=
".Win32EventLogFactory"
implements=
"loghandler"
extends=
"base-log-handler"
>
implements=
"
zLOG.
loghandler"
extends=
"
zLOG.
base-log-handler"
>
<key
name=
"appname"
default=
"Zope"
/>
<key
name=
"format"
default=
"%(message)s"
datatype=
".log_format"
/>
</sectiontype>
<sectiontype
name=
"http-logger"
datatype=
".HTTPHandlerFactory"
implements=
"loghandler"
extends=
"base-log-handler"
>
implements=
"
zLOG.
loghandler"
extends=
"
zLOG.
base-log-handler"
>
<key
name=
"url"
default=
"http://localhost/"
datatype=
".http_handler_url"
/>
<key
name=
"method"
default=
"GET"
datatype=
".get_or_post"
/>
<key
name=
"format"
default=
"%(asctime)s %(message)s"
...
...
@@ -43,7 +43,7 @@
</sectiontype>
<sectiontype
name=
"email-notifier"
datatype=
".SMTPHandlerFactory"
implements=
"loghandler"
extends=
"base-log-handler"
>
implements=
"
zLOG.
loghandler"
extends=
"
zLOG.
base-log-handler"
>
<key
name=
"from"
required=
"yes"
attribute=
"fromaddr"
/>
<multikey
name=
"to"
required=
"yes"
attribute=
"toaddrs"
/>
<key
name=
"subject"
default=
"Message from Zope"
/>
...
...
@@ -55,7 +55,7 @@
<sectiontype
name=
"eventlog"
datatype=
".EventLogFactory"
>
<key
name=
"level"
datatype=
".logging_level"
default=
"info"
/>
<multisection
type=
"loghandler"
attribute=
"handlers"
name=
"*"
/>
<multisection
type=
"
zLOG.
loghandler"
attribute=
"handlers"
name=
"*"
/>
</sectiontype>
</component>
This diff is collapsed.
Click to expand it.
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