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
69a1fb1f
Commit
69a1fb1f
authored
May 08, 2011
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Retain support for marhalling DateTime objects via xmlrpc
parent
44b00e1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/ZPublisher/xmlrpc.py
src/ZPublisher/xmlrpc.py
+3
-1
No files found.
src/ZPublisher/xmlrpc.py
View file @
69a1fb1f
...
...
@@ -31,7 +31,7 @@ from ZODB.POSException import ConflictError
# Make DateTime.DateTime marshallable via XML-RPC
# http://www.zope.org/Collectors/Zope/2109
from
DateTime.DateTime
import
DateTime
WRAPPERS
=
xmlrpclib
.
WRAPPERS
+
(
DateTime
,)
WRAPPERS
=
xmlrpclib
.
WRAPPERS
+
(
DateTime
,
)
def
dump_instance
(
self
,
value
,
write
):
# Check for special wrappers
...
...
@@ -49,6 +49,8 @@ def dump_instance(self, value, write):
self
.
dump_struct
(
value
,
write
)
xmlrpclib
.
Marshaller
.
dispatch
[
types
.
InstanceType
]
=
dump_instance
xmlrpclib
.
Marshaller
.
dispatch
[
DateTime
]
=
dump_instance
def
parse_input
(
data
):
"""Parse input data and return a method path and argument tuple
...
...
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