10 # (uuid, hrn, public_key)
13 return str(uuid.uuid4().int)
15 class GID(Certificate):
19 def __init__(self, create=False, subject=None, string=None, filename=None, uuid=None, hrn=None):
20 Certificate.__init__(self, create, subject, string, filename)
26 def set_uuid(self, uuid):
34 def set_hrn(self, hrn):
43 dict = {"uuid": self.uuid,
45 str = xmlrpclib.dumps((dict,))
49 data = self.get_data()
51 dict = xmlrpclib.loads(self.get_data())[0][0]
55 self.uuid = dict.get("uuid", None)
56 self.hrn = dict.get("hrn", None)
58 def dump(self, indent=0):
59 # TODO: implement indent
60 print " "*indent, " hrn:", self.get_hrn()
61 print " "*indent, "uuid:", self.get_uuid()