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
f9f42abf
Commit
f9f42abf
authored
Apr 27, 2005
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Collector #1233: ported ZOPE_CONFIG patch from Zope 2.7 to Zope 2.8
parent
3f2fbcb8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
doc/CHANGES.txt
doc/CHANGES.txt
+1
-2
lib/python/Zope2/Startup/options.py
lib/python/Zope2/Startup/options.py
+5
-0
lib/python/Zope2/__init__.py
lib/python/Zope2/__init__.py
+3
-9
No files found.
doc/CHANGES.txt
View file @
f9f42abf
...
...
@@ -20,8 +20,6 @@ Zope Changes
- Change acquisition wrappers to implement the descr get slot
directly, thus speeding the use of the slot.
- Port ZOPE_CONFIG patch from Zope 2.7 to Zope 2.8
after Zope 2.8b1
...
...
@@ -31,6 +29,7 @@ Zope Changes
Bugs fixed
- Collector #1233: ported ZOPE_CONFIG patch from Zope 2.7 to Zope 2.8
Zope 2.8b1 (2005/04/24)
...
...
lib/python/Zope2/Startup/options.py
View file @
f9f42abf
...
...
@@ -23,3 +23,8 @@ class ZopeOptions(zdaemon.zdoptions.ZDOptions):
schemadir
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
schemafile
=
"zopeschema.xml"
def
default_configfile
(
self
):
"""Use ZOPE_CONFIG if specified and -C not passed."""
return
os
.
environ
.
get
(
'ZOPE_CONFIG'
)
lib/python/Zope2/__init__.py
View file @
f9f42abf
...
...
@@ -42,8 +42,9 @@ def startup():
# Already began (and maybe finished) startup, so don't run again
return
_began_startup
=
1
_configure
()
from
Zope2.Startup.run
import
_setconfig
from
Zope2.App.startup
import
startup
as
_startup
_setconfig
()
_startup
()
def
app
(
*
args
,
**
kw
):
...
...
@@ -57,15 +58,8 @@ def debug(*args, **kw):
import
ZPublisher
return
ZPublisher
.
test
(
'Zope'
,
*
args
,
**
kw
)
from
Zope2.Startup.run
import
configure
def
_configure
():
# Load configuration file from (optional) environment variable
# Also see http://zope.org/Collectors/Zope/1233
import
os
configfile
=
os
.
environ
.
get
(
'ZOPE_CONFIG'
)
if
configfile
is
not
None
:
configure
(
configfile
)
from
Zope2.Startup.run
import
configure
# Zope2.App.startup.startup() sets the following variables in this module.
DB
=
None
...
...
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