(self, query=None, limit=20, offset=None, page=None, user=None)
either offset or page (but not both) must be set
        page is just a helper; it is used to calculate offset as page * limit
either offset or page (but not both) must be set
        page is just a helper; it is used to calculate offset as page * limit
either offset or page ( but not both ) must be set page is just a helper ; it is used to calculate offset as page * limit
def __init__(self, query=None, limit=20, offset=None, page=None, user=None):
        """
        either offset or page (but not both) must be set
        page is just a helper; it is used to calculate offset as page * limit
        """
        self.query = query
        self.limit = limit
        self.user = user

        if page is not None and offset is not None:
            raise TypeError("Only one of page or offset can be passed in")
        if offset is not None:
            self.offset = offset
        elif page is not None:
            self.offset = page * limit
        else:
            raise TypeError("One of page or offset must be passed in")
def __init__ ( self , query = None , limit = 20 , offset = None , page = None , user = None ) : self . query = query self . limit = limit self . user = user if page is not None and offset is not None : raise TypeError ( "Only one of page or offset can be passed in" ) if offset is not None : self . offset = offset elif page is not None : self . offset = page * limit else : raise TypeError ( "One of page or offset must be passed in" )