From: Tony Mack Date: Tue, 10 Mar 2009 14:24:47 +0000 (+0000) Subject: in save_to_string() dump cleaner xml X-Git-Tag: sfa-0.9-0@14641~600 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=69ec1b01ca5b06fe8b61e2ef57e5afdc4e8ac797;p=sfa.git in save_to_string() dump cleaner xml --- diff --git a/geni/util/record.py b/geni/util/record.py index 6552961b..d41f41e0 100644 --- 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 ##