Example #1
0
    def __init__(self, api_manger):
        self.name = u'BasicModule'

        ApiModule.__init__(self, api_manger, self.name)

        self.apis = [BaseAPI]
        self.controller = BasicController(self)
Example #2
0
    def __init__(self, api_manger):
        self.name = u'EventModule'

        ApiModule.__init__(self, api_manger, self.name)

        self.apis = [EventAPI]
        self.controller = EventController(self)
Example #3
0
    def __init__(self, api_manger):
        self.name = 'EventModule'
        self.base_path = 'nes'

        ApiModule.__init__(self, api_manger, self.name)

        self.apis = [EventAPI]
        self.controller = EventController(self)
Example #4
0
    def __init__(self, api_manger):
        self.name = u'SchedulerModule'

        ApiModule.__init__(self, api_manger, self.name)

        self.apis = [SchedulerAPI, TaskAPI]
        self.api_plugins = {}
        self.controller = SchedulerController(self)
Example #5
0
    def __init__(self, api_manger):
        """ """
        self.name = 'ConfigModule'

        ApiModule.__init__(self, api_manger, self.name)

        self.apis = [ConfigAPI]
        self.controller = ConfigController(self)
Example #6
0
    def __init__(self, api_manger):
        self.name = u'AuthModule'

        ApiModule.__init__(self, api_manger, self.name)

        self.apis = [AuthorizationAPI, SimpleHttpAuthApi, KeyAuthApi]
        self.authentication_manager = AuthenticationManager(
            api_manger.auth_providers)
        self.controller = AuthController(self)
Example #7
0
    def __init__(self, api_manger):
        self.name = u'CatalogModule'

        ApiModule.__init__(self, api_manger, self.name)

        self.apis = [CatalogAPI]
        self.authentication_manager = AuthenticationManager(
            api_manger.auth_providers)
        self.controller = CatalogController(self)
Example #8
0
    def __init__(self, api_manger):
        self.name = 'SchedulerModule'

        ApiModule.__init__(self, api_manger, self.name)

        self.apis = [SchedulerAPI, TaskAPI]
        self.api_plugins = {}
        self.controller = SchedulerController(self)

        # get related module
        try:
            self.related = api_manger.main_module
            self.base_path = self.related.base_path
        except:
            pass