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
fa552e80
Commit
fa552e80
authored
Jul 28, 2003
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix debug mode config file option (debug mode was always off before this fix).
parent
fee42345
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
lib/python/Globals.py
lib/python/Globals.py
+3
-10
lib/python/Zope/Startup/handlers.py
lib/python/Zope/Startup/handlers.py
+2
-0
No files found.
lib/python/Globals.py
View file @
fa552e80
...
...
@@ -13,7 +13,7 @@
"""Global definitions"""
__version__
=
'$Revision: 1.5
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
6
$'
[
11
:
-
2
]
# Global constants: __replaceable__ flags:
NOT_REPLACEABLE
=
0
...
...
@@ -44,17 +44,10 @@ data_dir = _cfg.clienthome
INSTANCE_HOME
=
_cfg
.
instancehome
SOFTWARE_HOME
=
_cfg
.
softwarehome
ZOPE_HOME
=
_cfg
.
zopehome
del
_cfg
,
_getConfiguration
opened
=
[]
# Check,if DEBUG variables are set
DevelopmentMode
=
None
DevelopmentMode
=
_cfg
.
debug_mode
z1
=
os
.
environ
.
get
(
'Z_DEBUG_MODE'
,
''
)
z2
=
os
.
environ
.
get
(
'BOBO_DEBUG_MODE'
,
''
)
del
_cfg
,
_getConfiguration
if
z1
.
lower
()
in
(
'yes'
,
'y'
)
or
z1
.
isdigit
():
DevelopmentMode
=
1
elif
z2
.
lower
()
in
(
'yes'
,
'y'
)
or
z2
.
isdigit
():
DevelopmentMode
=
1
lib/python/Zope/Startup/handlers.py
View file @
fa552e80
...
...
@@ -17,6 +17,8 @@ def _setenv(name, value):
def
debug_mode
(
value
):
value
and
_setenv
(
'Z_DEBUG_MODE'
,
'1'
)
import
Globals
Globals
.
DevelopmentMode
=
not
not
value
return
value
def
enable_product_installation
(
value
):
...
...
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