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
5aa6b549
Commit
5aa6b549
authored
Mar 17, 2003
by
Christian Theune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The real fix for bug 471. The environment didn't truly let us do a simple
try/except so we need to explicitly check.
parent
1d040811
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+7
-4
No files found.
lib/python/ZPublisher/Publish.py
View file @
5aa6b549
...
...
@@ -12,8 +12,8 @@
##############################################################################
__doc__
=
"""Python Object Publisher -- Publish Python objects on web servers
$Id: Publish.py,v 1.1
59 2003/03/17 11:12:11
ctheune Exp $"""
__version__
=
'$Revision: 1.1
59
$'
[
11
:
-
2
]
$Id: Publish.py,v 1.1
60 2003/03/17 13:58:43
ctheune Exp $"""
__version__
=
'$Revision: 1.1
60
$'
[
11
:
-
2
]
import
sys
,
os
from
Response
import
Response
...
...
@@ -58,6 +58,7 @@ def publish(request, module_name, after_list, debug=0,
validated_hook
,
transactions_manager
)
=
get_module_info
(
module_name
)
parents
=
None
response
=
None
try
:
request
.
processInputs
()
...
...
@@ -106,8 +107,10 @@ def publish(request, module_name, after_list, debug=0,
if
transactions_manager
:
transactions_manager
.
abort
()
# DM: provide nicer error message for FTP
try
:
sm
=
response
.
setMessage
except
:
sm
=
None
sm
=
None
if
response
is
not
None
:
sm
=
getattr
(
response
,
"setMessage"
,
None
)
if
sm
is
not
None
:
from
ZServer.medusa.asyncore
import
compact_traceback
cl
,
val
=
sys
.
exc_info
()[:
2
]
...
...
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