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
acc06867
Commit
acc06867
authored
Apr 18, 2003
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asyncore is no longer shipped with Zope
parent
b8791552
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+3
-3
No files found.
lib/python/ZPublisher/Publish.py
View file @
acc06867
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
##############################################################################
##############################################################################
__doc__
=
"""Python Object Publisher -- Publish Python objects on web servers
__doc__
=
"""Python Object Publisher -- Publish Python objects on web servers
$Id: Publish.py,v 1.16
3 2003/03/21 22:00:56 fdrake
Exp $"""
$Id: Publish.py,v 1.16
4 2003/04/18 13:51:21 andreasjung
Exp $"""
__version__
=
'$Revision: 1.16
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.16
4
$'
[
11
:
-
2
]
import
sys
,
os
import
sys
,
os
from
Response
import
Response
from
Response
import
Response
...
@@ -111,7 +111,7 @@ def publish(request, module_name, after_list, debug=0,
...
@@ -111,7 +111,7 @@ def publish(request, module_name, after_list, debug=0,
sm
=
getattr
(
response
,
"setMessage"
,
None
)
sm
=
getattr
(
response
,
"setMessage"
,
None
)
if
sm
is
not
None
:
if
sm
is
not
None
:
from
ZServer.medusa.
asyncore
import
compact_traceback
from
asyncore
import
compact_traceback
cl
,
val
=
sys
.
exc_info
()[:
2
]
cl
,
val
=
sys
.
exc_info
()[:
2
]
sm
(
'%s: %s %s'
%
(
getattr
(
cl
,
'__name__'
,
cl
),
val
,
debug_mode
and
compact_traceback
()[
-
1
]
or
''
))
sm
(
'%s: %s %s'
%
(
getattr
(
cl
,
'__name__'
,
cl
),
val
,
debug_mode
and
compact_traceback
()[
-
1
]
or
''
))
...
...
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