(self)
Overrided
        fetch results and cache them
Overrided
        fetch results and cache them
Overrided fetch results and cache them
def debug_fetch(self):
        """ Overrided
        fetch results and cache them
        """
        # reset dynamic keys
        for key in self._dynamic_keys:
            try:
                delattr(self, key)
            except:
                pass
        self._dynamic_keys = []

        self._result_cache = self.fetch_raw().json_body
        self._total_rows = self._result_cache.get('total_rows')
        self._offset = self._result_cache.get('offset', 0)

        # add key in view results that could be added by an external
        # like couchdb-lucene
        for key in self._result_cache:
            if key not in ["total_rows", "offset", "rows"]:
                self._dynamic_keys.append(key)
                setattr(self, key, self._result_cache[key])
def debug_fetch ( self ) : # reset dynamic keys for key in self . _dynamic_keys : try : delattr ( self , key ) except : pass self . _dynamic_keys = [ ] self . _result_cache = self . fetch_raw ( ) . json_body self . _total_rows = self . _result_cache . get ( 'total_rows' ) self . _offset = self . _result_cache . get ( 'offset' , 0 ) # add key in view results that could be added by an external # like couchdb-lucene for key in self . _result_cache : if key not in [ "total_rows" , "offset" , "rows" ] : self . _dynamic_keys . append ( key ) setattr ( self , key , self . _result_cache [ key ] )