def list(self):
        ''' Show table '''
        # get page index
        current_page    = int(request.GET['page'] if 'page' in request.GET else 1)
        only_trashed    = True if 'trash' in request.GET and request.GET['trash'] == '1' else False
        # determine limit and offset
        limit   = self.__row_per_page__
        offset  = (current_page-1) * limit
        # get the data
        data_list = self.__model__.get(and_(self.default_criterion(), self.search_criterion()), limit = limit, offset = offset, only_trashed = only_trashed)
        for data in data_list:
            data.set_state_list()
        # calculate page count
        page_count = int(math.ceil(float(self.__model__.count(and_(self.default_criterion(), self.search_criterion()))/float(limit))))
        # serialized get
        get_pair = []
        for key in request.GET:
            if key == 'page' or request.GET[key] == '':
                continue
            get_pair.append(key + '=' + str(request.GET[key]))
        get_pair = '&'.join(get_pair)
        # load the view
        self._setup_view_parameter()
        self._set_view_parameter(self.__model_name__+'_list', data_list)
        self._set_view_parameter(self.__model_name__.title(), self.__model__)
        self._set_view_parameter('__token', self._set_token())
        self._set_view_parameter('current_page', current_page)
        self._set_view_parameter('page_count', page_count)
        self._set_view_parameter('search_input', self.search_input())
        self._set_view_parameter('serialized_get', get_pair)
        self._set_view_parameter('only_trashed', only_trashed)
        return self._load_view('list')
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/controller.py/Crud_Controller.list/original