make gid.dump() look nice
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 7 Jul 2011 18:00:49 +0000 (14:00 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 7 Jul 2011 18:00:49 +0000 (14:00 -0400)
sfa/trust/gid.py

index 7650d11..b881a1f 100644 (file)
@@ -180,7 +180,7 @@ class GID(Certificate):
         print self.dump_string(*args,**kwargs)
 
     def dump_string(self, indent=0, dump_parents=False):
-        result="GID\n"
+        result=" "*(indent-2) + "GID\n"
         result += " "*indent + "hrn:" + str(self.get_hrn()) +"\n"
         result += " "*indent + "urn:" + str(self.get_urn()) +"\n"
         result += " "*indent + "uuid:" + str(self.get_uuid()) + "\n"