def __init__(self, *args, **kwargs):
     super(AdminController, self).__init__(*args, **kwargs)
     self.resource_name = self.collection.rstrip('s').replace('-', '_')
     self.share_api = share.API()
     self.cg_api = cg_api.API()
Exemple #2
0
 def __init__(self):
     super(CGSnapshotController, self).__init__()
     self.cg_api = cg_api.API()
 def __init__(self, *args, **kwargs):
     super(CGSnapshotAdminController, self).__init__(*args, **kwargs)
     self.cg_api = cg_api.API()