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
0f37e816
Commit
0f37e816
authored
Feb 02, 2003
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Collector #741: Applied patch to provide better FTP error messages.
parent
52eb2c26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+10
-2
No files found.
doc/CHANGES.txt
View file @
0f37e816
...
...
@@ -39,6 +39,8 @@ Zope Changes
- Objects locked through WebDAV are now marked with a lock icon
inside the ZMI.
- Collector #741: Applied patch to provide better FTP error messages.
Bugs Fixed
- Collector #771: ZCatalog failed to index DTML Document if the name
...
...
lib/python/ZPublisher/Publish.py
View file @
0f37e816
...
...
@@ -12,8 +12,8 @@
##############################################################################
__doc__
=
"""Python Object Publisher -- Publish Python objects on web servers
$Id: Publish.py,v 1.15
7 2002/08/14 22:09:40 mj
Exp $"""
__version__
=
'$Revision: 1.15
7
$'
[
11
:
-
2
]
$Id: Publish.py,v 1.15
8 2003/02/02 12:11:01 andreasjung
Exp $"""
__version__
=
'$Revision: 1.15
8
$'
[
11
:
-
2
]
import
sys
,
os
from
Response
import
Response
...
...
@@ -105,6 +105,14 @@ def publish(request, module_name, after_list, debug=0,
except
:
if
transactions_manager
:
transactions_manager
.
abort
()
# DM: provide nicer error message for FTP
sm
=
getattr
(
response
,
'setMessage'
,
None
)
if
sm
is
not
None
:
from
ZServer.medusa.asyncore
import
compact_traceback
cl
,
val
=
sys
.
exc_info
()[:
2
]
sm
(
'%s: %s %s'
%
(
getattr
(
cl
,
'__name__'
,
cl
),
val
,
debug_mode
and
compact_traceback
()[
-
1
]
or
''
))
if
err_hook
is
not
None
:
if
parents
:
parents
=
parents
[
0
]
try
:
...
...
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