rset.py
changeset 5174 78438ad513ca
parent 5072 072ae171aeb0
child 5328 c51e8f62652a
equal deleted inserted replaced
5173:73760bbb66bd 5174:78438ad513ca
    29       result's description, using the same structure as the result itself
    29       result's description, using the same structure as the result itself
    30 
    30 
    31     :type rql: str or unicode
    31     :type rql: str or unicode
    32     :ivar rql: the original RQL query string
    32     :ivar rql: the original RQL query string
    33     """
    33     """
    34     def __init__(self, results, rql, args=None, description=(), cachekey=None,
    34     def __init__(self, results, rql, args=None, description=(), rqlst=None):
    35                  rqlst=None):
       
    36         self.rows = results
    35         self.rows = results
    37         self.rowcount = results and len(results) or 0
    36         self.rowcount = results and len(results) or 0
    38         # original query and arguments
    37         # original query and arguments
    39         self.rql = rql
    38         self.rql = rql
    40         self.args = args
    39         self.args = args
    41         self.cachekey = cachekey
       
    42         # entity types for each cell (same shape as rows)
    40         # entity types for each cell (same shape as rows)
    43         # maybe discarded if specified when the query has been executed
    41         # maybe discarded if specified when the query has been executed
    44         self.description = description
    42         self.description = description
    45         # parsed syntax tree
    43         # parsed syntax tree
    46         if rqlst is not None:
    44         if rqlst is not None: