- def dump(self, format=None, dump_parents=False):
+ def dump(self, format=None, dump_parents=False, sort=False):
- def dump_text(self, dump_parents=False):
- print "".join(['=' for i in range(40)])
+ def dump_text(self, dump_parents=False, sort=False):
+ print 40*'='
attrib = getattr(self, attrib_name)
# skip internals
if attrib_name.startswith('_'): continue
attrib = getattr(self, attrib_name)
# skip internals
if attrib_name.startswith('_'): continue
elif attrib_name in ['date created', 'last updated']:
print " %s: %s" % (attrib_name, self.date_repr(attrib_name))
else:
elif attrib_name in ['date created', 'last updated']:
print " %s: %s" % (attrib_name, self.date_repr(attrib_name))
else: