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
fcd9a61d
Commit
fcd9a61d
authored
Oct 25, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more cleanup
parent
b0be30ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+4
-6
No files found.
lib/python/ZPublisher/Publish.py
View file @
fcd9a61d
...
...
@@ -84,8 +84,8 @@
##############################################################################
__doc__
=
"""Python Object Publisher -- Publish Python objects on web servers
$Id: Publish.py,v 1.15
1 2001/10/25 14:33:02
andreasjung Exp $"""
__version__
=
'$Revision: 1.15
1
$'
[
11
:
-
2
]
$Id: Publish.py,v 1.15
2 2001/10/25 14:54:13
andreasjung Exp $"""
__version__
=
'$Revision: 1.15
2
$'
[
11
:
-
2
]
import
sys
,
os
from
string
import
lower
,
atoi
,
rfind
,
strip
...
...
@@ -282,9 +282,10 @@ def get_module_info(module_name, modules={},
else
:
realm
=
module_name
# Check for debug mode
debug_mode
=
None
if
hasattr
(
module
,
'__bobo_debug_mode__'
):
debug_mode
=
not
not
module
.
__bobo_debug_mode__
el
if
:
el
se
:
z1
=
os
.
environ
.
get
(
'Z_DEBUG_MODE'
,
None
)
z2
=
os
.
environ
.
get
(
'BOBO_DEBUG_MODE'
,
None
)
...
...
@@ -293,10 +294,7 @@ def get_module_info(module_name, modules={},
debug_mode
=
1
elif
z2
.
lower
()
in
(
'yes'
,
'y'
)
or
z2
.
isdigit
():
debug_mode
=
1
else
:
debug_mode
=
None
else
:
debug_mode
=
None
if
hasattr
(
module
,
'__bobo_before__'
):
bobo_before
=
module
.
__bobo_before__
...
...
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