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
c943a219
Commit
c943a219
authored
Dec 24, 2007
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to zdaemon 2.0.1, and adapt startup code to fit.
o Also, use tagged release of ZODB-based externals.
parent
61e9309e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
lib/python/Zope2/Startup/datatypes.py
lib/python/Zope2/Startup/datatypes.py
+10
-2
No files found.
lib/python/Zope2/Startup/datatypes.py
View file @
c943a219
...
...
@@ -15,6 +15,7 @@
"""Datatypes for the Zope schema for use with ZConfig."""
import
os
from
UserDict
import
UserDict
from
ZConfig.components.logger
import
logger
from
ZODB.config
import
ZODBDatabase
...
...
@@ -108,6 +109,13 @@ def python_dotted_path(name):
ob
=
importable_name
(
name
)
# will fail in course
return
name
class
zdaemonEnvironDict
(
UserDict
):
# zdaeomon 2 expects to use a 'mapping' attribute of the environ object.
@
property
def
mapping
(
self
):
return
self
.
data
# Datatype for the root configuration object
# (adds the softwarehome and zopehome fields; default values for some
# computed paths, configures the dbtab)
...
...
@@ -120,9 +128,9 @@ def root_config(section):
section
.
softwarehome
=
swhome
section
.
zopehome
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
swhome
))
if
section
.
environment
is
None
:
section
.
environment
=
{}
section
.
environment
=
zdaemonEnvironDict
()
if
section
.
cgi_environment
is
None
:
section
.
cgi_environment
=
{}
section
.
cgi_environment
=
zdaemonEnvironDict
()
if
section
.
clienthome
is
None
:
section
.
clienthome
=
os
.
path
.
join
(
section
.
instancehome
,
"var"
)
# set up defaults for pid_filename and lock_filename if they're
...
...
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