Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
3505dff2
Commit
3505dff2
authored
May 05, 2006
by
Timothy Stack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update scrubdict to change Sets to lists.
parent
662e924f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
xmlrpc/emulabserver.py.in
xmlrpc/emulabserver.py.in
+5
-0
No files found.
xmlrpc/emulabserver.py.in
View file @
3505dff2
...
...
@@ -4507,6 +4507,8 @@ def nfspath(value):
return
retval
from
sets
import
Set
##
# Scrub a dictionary returned by an SQL query so that it can be sent through
# the XML-RPC marshaller without error.
...
...
@@ -4525,6 +4527,9 @@ def scrubdict(retval, prunelist=[], defaultvals={}):
del
retval
[
key
]
pass
pass
elif
isinstance
(
retval
[
key
],
Set
):
retval
[
key
]
=
list
(
retval
[
key
])
pass
elif
isinstance
(
retval
[
key
],
datetime
.
datetime
):
retval
[
key
]
=
xmlrpclib
.
DateTime
(
time
.
strptime
(
str
(
retval
[
key
]),
"%Y-%m-%d %H:%M:%S"
))
...
...
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