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
23d6e1ac
Commit
23d6e1ac
authored
Mar 21, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_module_info(): Don't set the "realm" local variable twice.
parent
00fae0db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+4
-5
No files found.
lib/python/ZPublisher/Publish.py
View file @
23d6e1ac
...
...
@@ -12,8 +12,8 @@
##############################################################################
__doc__
=
"""Python Object Publisher -- Publish Python objects on web servers
$Id: Publish.py,v 1.16
0 2003/03/17 13:58:43 ctheun
e Exp $"""
__version__
=
'$Revision: 1.16
0
$'
[
11
:
-
2
]
$Id: Publish.py,v 1.16
1 2003/03/21 21:15:02 fdrak
e Exp $"""
__version__
=
'$Revision: 1.16
1
$'
[
11
:
-
2
]
import
sys
,
os
from
Response
import
Response
...
...
@@ -219,8 +219,6 @@ def get_module_info(module_name, modules={},
try
:
module
=
__import__
(
module_name
,
globals
(),
globals
(),
(
'__doc__'
,))
realm
=
module_name
# Let the app specify a realm
if
hasattr
(
module
,
'__bobo_realm__'
):
realm
=
module
.
__bobo_realm__
...
...
@@ -228,7 +226,8 @@ def get_module_info(module_name, modules={},
realm
=
os
.
environ
[
'Z_REALM'
]
elif
os
.
environ
.
has_key
(
'BOBO_REALM'
):
realm
=
os
.
environ
[
'BOBO_REALM'
]
else
:
realm
=
module_name
else
:
realm
=
module_name
# Check for debug mode
debug_mode
=
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