6 # (uuid, hrn, public_key)
9 return str(uuid.uuid4().int)
11 class GID(Certificate):
15 def __init__(self, create=False, subject=None, string=None, filename=None, uuid=None, hrn=None):
16 Certificate.__init__(self, create, subject, string, filename)
22 def set_uuid(self, uuid):
30 def set_hrn(self, hrn):
39 dict = {"uuid": self.uuid,
41 str = xmlrpclib.dumps((dict,))
45 data = self.get_data()
47 dict = xmlrpclib.loads(self.get_data())[0][0]
51 self.uuid = dict.get("uuid", None)
52 self.hrn = dict.get("hrn", None)