def __init__(self, api): Resource.__init__(self, api) self.parser = reqparse.RequestParser() self.parser.add_argument('pageSize', type=int, default=20, help='page size cannot be converted') self.parser.add_argument('pageNumber', type=int, default=1, help='page size cannot be converted')
def __init__(self, api=None, *args, **kwargs): """Constructor""" self.username = current_user.get_id() self.is_admin = api.bui.acl and api.bui.acl.is_admin(self.username) self.cache = api.cache ResourcePlus.__init__(self, api, *args, **kwargs)
def __init__(self, api=None, *args, **kwargs): self.username = current_user.get_id() self.is_admin = api.bui.acl and api.bui.acl.is_admin(self.username) self.cache = api.cache ResourcePlus.__init__(self, api, *args, **kwargs)
def __init__(self, api=None, *args, **kwargs): self.logger = logging.getLogger(self.__class__.__name__) Resource.__init__(self, api, args, kwargs)
def __init__(self, api=None, *args, **kwargs): Resource.__init__(self, api, *args, **kwargs) self.method_decorators = [token_required]