Ejemplo n.º 1
0
 def __init__(self, catalog):
     self.catalog = catalog
     #we also create a Client object pointing to the same url
     if isinstance(catalog, PKICatalog):
         self.client = PKIClient(catalog.service_url, catalog.key,
                                 catalog.cert, catalog.ca_cert)
     else:
         self.client = Client(str(catalog.service_url), catalog.username,
                              catalog.password)
Ejemplo n.º 2
0
 def __init__(self, catalog):
     self.catalog = catalog
     #we also create a Client object pointing to the same url
     self.client = Client(str(catalog.service_url), catalog.username,
                          catalog.password)