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
068d933d
Commit
068d933d
authored
Apr 15, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in catching errors during import.
parent
68db75d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+8
-3
No files found.
lib/python/ZPublisher/Publish.py
View file @
068d933d
...
...
@@ -373,7 +373,7 @@ Publishing a module using CGI
containing the module to be published) to the module name in the
cgi-bin directory.
$Id: Publish.py,v 1.8
3 1998/04/15 11:27:45
jim Exp $"""
$Id: Publish.py,v 1.8
4 1998/04/15 12:01:56
jim Exp $"""
#'
# Copyright
#
...
...
@@ -428,10 +428,11 @@ $Id: Publish.py,v 1.83 1998/04/15 11:27:45 jim Exp $"""
# See end of file for change log.
#
##########################################################################
__version__
=
'$Revision: 1.8
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.8
4
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
cgi
,
regex
from
string
import
*
import
CGIResponse
from
CGIResponse
import
Response
from
urllib
import
quote
,
unquote
from
cgi
import
FieldStorage
,
MiniFieldStorage
...
...
@@ -880,6 +881,7 @@ def get_module_info(module_name, modules={},
if
module_name
[
-
4
:]
==
'.cgi'
:
module_name
=
module_name
[:
-
4
]
acquire
()
try
:
try
:
module
=
__import__
(
module_name
)
...
...
@@ -940,6 +942,9 @@ def get_module_info(module_name, modules={},
modules
[
module_name
]
=
modules
[
module_name
+
'.cgi'
]
=
info
return
info
except
:
raise
ImportError
,
(
sys
.
exc_type
,
sys
.
exc_value
,
sys
.
exc_traceback
)
finally
:
release
()
def
str_field
(
v
):
...
...
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