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
ae35a87c
Commit
ae35a87c
authored
Aug 04, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Begin removing 1.4 exception handling isms.
parent
04905a84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+3
-5
No files found.
lib/python/ZPublisher/Publish.py
View file @
ae35a87c
...
...
@@ -84,8 +84,8 @@
##############################################################################
__doc__
=
"""Python Object Publisher -- Publish Python objects on web servers
$Id: Publish.py,v 1.13
5 1999/08/04 18:05:2
8 jim Exp $"""
__version__
=
'$Revision: 1.13
5
$'
[
11
:
-
2
]
$Id: Publish.py,v 1.13
6 1999/08/04 20:51:1
8 jim Exp $"""
__version__
=
'$Revision: 1.13
6
$'
[
11
:
-
2
]
import
sys
,
os
from
string
import
lower
,
atoi
,
rfind
,
strip
...
...
@@ -169,7 +169,6 @@ def publish(request, module_name, after_list, debug=0,
if
have_transactions
:
get_transaction
().
commit
()
return
response
except
:
if
err_hook
is
not
None
:
if
parents
:
parents
=
parents
[
-
1
]
...
...
@@ -209,8 +208,7 @@ def publish_module(module_name,
response
=
publish
(
request
,
module_name
,
after_list
,
debug
=
debug
)
except
SystemExit
,
v
:
if
hasattr
(
sys
,
'exc_info'
):
must_die
=
sys
.
exc_info
()
else
:
must_die
=
SystemExit
,
v
,
sys
.
exc_traceback
must_die
=
sys
.
exc_info
()
response
.
exception
(
must_die
)
except
ImportError
,
v
:
if
type
(
v
)
is
type
(())
and
len
(
v
)
==
3
:
must_die
=
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