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
144c0bc0
Commit
144c0bc0
authored
Mar 27, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bugs.
parent
db1e3478
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
lib/python/ZPublisher/Client.py
lib/python/ZPublisher/Client.py
+8
-5
No files found.
lib/python/ZPublisher/Client.py
View file @
144c0bc0
...
...
@@ -56,8 +56,8 @@
__doc__
=
'''bobo call interface
$Id: Client.py,v 1.
1 1997/03/27 17:13:54
jim Exp $'''
__version__
=
'$Revision: 1.
1
$'
[
11
:
-
2
]
$Id: Client.py,v 1.
2 1997/03/27 18:10:47
jim Exp $'''
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
import
regex
from
httplib
import
HTTP
...
...
@@ -101,11 +101,11 @@ type2marshal={
urlregex
=
regex
.
compile
(
'http://
\
([^:/]+
\
)
\
(:[
0
-9]+
\
)?
\
(/.+
\
)
'
, regex.casefold)
NotFound='
bci
.
NotFound
'
ServerError'
bci
.
ServerError
ServerError
=
'
bci
.
ServerError
def
ErrorTypes
(
code
):
if
code
>=
400
&&
code
<
500
:
return
NotFound
if
code
>=
500
&&
code
<
600
:
return
ServerError
if
code
>=
400
and
code
<
500
:
return
NotFound
if
code
>=
500
and
code
<
600
:
return
ServerError
return
'HTTP_Error_%s'
%
code
class
BoboFunction
:
...
...
@@ -186,6 +186,9 @@ if __name__ == "__main__": main()
#
# $Log: Client.py,v $
# Revision 1.2 1997/03/27 18:10:47 jim
# Fixed bugs.
#
# Revision 1.1 1997/03/27 17:13:54 jim
# *** empty log message ***
#
...
...
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