X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fstorage%2Frecord.py;h=ad1c8c76cace7e211d649014c70d28fd6d2eb6e1;hb=fa77e36e57e78fb3f589818782cbdf327414fee5;hp=0d03bc697932d3c80c22b745070694642a24e1cf;hpb=4db8e2ab7735590f1ba8cc6bb8edf94fdb63e6fc;p=sfa.git diff --git a/sfa/storage/record.py b/sfa/storage/record.py index 0d03bc69..ad1c8c76 100644 --- a/sfa/storage/record.py +++ b/sfa/storage/record.py @@ -70,7 +70,7 @@ class Record: if format == 'text': self.dump_text(dump_parents) elif format == 'xml': - print self.save_to_string() + print self.save_as_xml() elif format == 'simple': print self.dump_simple() else: @@ -93,7 +93,7 @@ class Record: elif attrib_name in ['date created', 'last updated']: print " %s: %s" % (attrib_name, self.date_repr(attrib_name)) else: - print " %s: %s" % (attrib_name, attrib) + print " %s: %s" % (attrib_name, attrib) def dump_simple(self): return "%s"%self