fix so that sfadump can be used to inspect gids and creds
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 15 Apr 2014 16:05:56 +0000 (18:05 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 15 Apr 2014 16:05:56 +0000 (18:05 +0200)
clientbin/sfadump.py
sfa/trust/credential.py

index 93fca70..fb654e7 100755 (executable)
@@ -115,7 +115,7 @@ def handle_input (filename, options):
         print "%s: unknown filekind '%s'"% (filename,kind)
 
 def main():
-    usage = """%prog file1 [ .. filen]
+    usage = """%(prog)s file1 [ .. filen]
 display info on input files"""
     parser = ArgumentParser(usage=usage)
 
index 4256673..9a45400 100644 (file)
@@ -1056,8 +1056,8 @@ class Credential(object):
     def dump (self, *args, **kwargs):
         print self.dump_string(*args, **kwargs)
 
-
-    def dump_string(self, dump_parents=False):
+    # show_xml is ignored
+    def dump_string(self, dump_parents=False, show_xml=None):
         result=""
         result += "CREDENTIAL %s\n" % self.get_subject()
         filename=self.get_filename()