git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b570686
)
in save_to_string() dump cleaner xml
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 10 Mar 2009 14:24:47 +0000
(14:24 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 10 Mar 2009 14:24:47 +0000
(14:24 +0000)
geni/util/record.py
patch
|
blob
|
history
diff --git
a/geni/util/record.py
b/geni/util/record.py
index
6552961
..
d41f41e
100644
(file)
--- a/
geni/util/record.py
+++ b/
geni/util/record.py
@@
-6,7
+6,7
@@
import report
from gid import *
-
+from geni.util.rspec import *
##
# The GeniRecord class implements a Geni Record. A GeniRecord is a tuple
# (Name, GID, Type, Info).
@@
-246,8
+246,13
@@
class GeniRecord:
# the record.
def save_to_string(self):
+
dict = self.as_dict()
- str = xmlrpclib.dumps((dict,), allow_none=True)
+ print dict
+ record = RecordSpec()
+ record.parseDict(dict)
+ str = record.toxml()
+ #str = xmlrpclib.dumps((dict,), allow_none=True)
return str
##