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
e0fc1cd4
Commit
e0fc1cd4
authored
Oct 31, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unified handling of _DEBUG variables
parent
91233136
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
doc/ENVIRONMENT.txt
doc/ENVIRONMENT.txt
+2
-2
lib/python/Globals.py
lib/python/Globals.py
+10
-11
No files found.
doc/ENVIRONMENT.txt
View file @
e0fc1cd4
...
@@ -127,8 +127,8 @@ Debugging and Logging
...
@@ -127,8 +127,8 @@ Debugging and Logging
See also: LOGGING.txt
See also: LOGGING.txt
Z_DEBUG_MODE "yes"
Z_DEBUG_MODE "yes"
or "no"
BOBO_DEBUG_MODE "yes" (obsolete)
BOBO_DEBUG_MODE "yes"
or "no"
(obsolete)
Run Zope in debug mode if set. Same as -D options (z2.py)
Run Zope in debug mode if set. Same as -D options (z2.py)
...
...
lib/python/Globals.py
View file @
e0fc1cd4
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
"""Global definitions"""
"""Global definitions"""
__version__
=
'$Revision: 1.4
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
8
$'
[
11
:
-
2
]
import
Acquisition
,
ComputedAttribute
,
App
.
PersistentExtra
,
os
import
Acquisition
,
ComputedAttribute
,
App
.
PersistentExtra
,
os
import
TreeDisplay
,
string
import
TreeDisplay
,
string
...
@@ -102,19 +102,18 @@ InitializeClass = default__class_init__
...
@@ -102,19 +102,18 @@ InitializeClass = default__class_init__
from
App.Dialogs
import
MessageDialog
from
App.Dialogs
import
MessageDialog
from
App.ImageFile
import
ImageFile
from
App.ImageFile
import
ImageFile
DevelopmentMode
=
None
VersionNameName
=
'Zope-Version'
VersionNameName
=
'Zope-Version'
data_dir
=
os
.
path
.
join
(
INSTANCE_HOME
,
'var'
)
data_dir
=
os
.
path
.
join
(
INSTANCE_HOME
,
'var'
)
for
n
in
'Z'
,
'BOBO'
:
if
os
.
environ
.
has_key
(
'%s_DEBUG_MODE'
%
n
):
n
=
string
.
lower
(
os
.
environ
[
'%s_DEBUG_MODE'
%
n
])
if
n
==
'no'
or
n
==
'off'
:
continue
try
:
n
=
string
.
atoi
(
n
)
except
:
pass
if
n
:
DevelopmentMode
=
1
opened
=
[]
opened
=
[]
# Check,if DEBUG variables are set
DevelopmentMode
=
None
z1
=
os
.
environ
.
get
(
'Z_DEBUG_MODE'
,
''
)
z2
=
os
.
environ
.
get
(
'BOBO_DEBUG_MODE'
,
''
)
if
z1
.
lower
()
in
(
'yes'
,
'y'
)
or
z1
.
isdigit
():
DevelopmentMode
=
1
elif
z2
.
lower
()
in
(
'yes'
,
'y'
)
or
z2
.
isdigit
():
DevelopmentMode
=
1
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