コード例 #1
0
 def __init__(self, *args, **kwargs):
     self.pool = None
     if args or kwargs:
         self.configure(*args, **kwargs)
     self.collections = CollectionManager(self)
     self.data_objects = DataObjectManager(self)
     self.metadata = MetadataManager(self)
     self.permissions = AccessManager(self)
     self.users = UserManager(self)
     self.user_groups = UserGroupManager(self)
     self.resources = ResourceManager(self)
コード例 #2
0
    def __init__(self, configure=True, **kwargs):
        self.pool = None
        self.numThreads = 0

        if configure:
            self.configure(**kwargs)

        self.collections = CollectionManager(self)
        self.data_objects = DataObjectManager(self)
        self.metadata = MetadataManager(self)
        self.permissions = AccessManager(self)
        self.users = UserManager(self)
        self.user_groups = UserGroupManager(self)
        self.resources = ResourceManager(self)
コード例 #3
0
    def __init__(self, configure=True, **kwargs):
        self.pool = None
        self.numThreads = 0
        self._env_file = ''
        self._auth_file = ''
        self.do_configure = (kwargs if configure else {})
        self.__configured = None
        if configure:
            self.__configured = self.configure(**kwargs)

        self.collections = CollectionManager(self)
        self.data_objects = DataObjectManager(self)
        self.metadata = MetadataManager(self)
        self.permissions = AccessManager(self)
        self.users = UserManager(self)
        self.user_groups = UserGroupManager(self)
        self.resources = ResourceManager(self)
        self.zones = ZoneManager(self)