Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Kirill Smelkov
Zope
Commits
fd89cf9b
Commit
fd89cf9b
authored
Apr 30, 2006
by
Lennart Regebro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More twisted imports handled.
parent
87be8d16
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
lib/python/Zope2/Startup/__init__.py
lib/python/Zope2/Startup/__init__.py
+8
-1
lib/python/Zope2/Startup/datatypes.py
lib/python/Zope2/Startup/datatypes.py
+7
-0
lib/python/Zope2/Startup/zopeschema.xml
lib/python/Zope2/Startup/zopeschema.xml
+1
-1
No files found.
lib/python/Zope2/Startup/__init__.py
View file @
fd89cf9b
...
...
@@ -20,7 +20,12 @@ import sys
import
socket
from
re
import
compile
from
socket
import
gethostbyaddr
import
twisted.internet.reactor
try
:
import
twisted.internet.reactor
_use_twisted
=
True
except
ImportError
:
_use_twisted
=
True
import
ZConfig
from
ZConfig.components.logger
import
loghandler
...
...
@@ -111,6 +116,8 @@ class ZopeStarter:
from
App.config
import
getConfiguration
config
=
getConfiguration
()
if
config
.
twisted_servers
:
if
not
_use_twisted
:
raise
ValueError
,
"You do not have twisted installed."
twisted
.
internet
.
reactor
.
run
()
else
:
import
ZServer
...
...
lib/python/Zope2/Startup/datatypes.py
View file @
fd89cf9b
...
...
@@ -339,3 +339,10 @@ def zopeClassFactory(jar, module, name,
# Zope class factory." This no longer works with the implementation of
# mounted databases, so we just use the zopeClassFactory as the default
try
:
from
zope.app.twisted.server
import
ServerFactory
class
TwistedServerFactory
(
ServerFactory
):
pass
except
ImportError
:
class
TwistedServerFactory
:
pass
lib/python/Zope2/Startup/zopeschema.xml
View file @
fd89cf9b
...
...
@@ -11,7 +11,7 @@
<import
package=
"tempstorage"
/>
<import
package=
"Zope2.Startup"
file=
"warnfilter.xml"
/>
<sectiontype
name=
"server"
datatype=
"
zope.app.twisted.server.
ServerFactory"
>
<sectiontype
name=
"server"
datatype=
"
Zope2.Startup.datatypes.Twisted
ServerFactory"
>
<key
name=
"type"
required=
"yes"
/>
<key
name=
"address"
datatype=
"inet-address"
/>
<key
name=
"backlog"
datatype=
"integer"
default=
"50"
/>
...
...
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