req.py
branchstable
changeset 5459 6e561796804c
parent 5426 0d4853a6e5ee
child 5473 ee87c5352e63
child 5516 232d13fc3e86
equal deleted inserted replaced
5458:a5b96b98242c 5459:6e561796804c
   104                          [(etype,)])
   104                          [(etype,)])
   105         rset.req = self
   105         rset.req = self
   106         return rset
   106         return rset
   107 
   107 
   108     def empty_rset(self):
   108     def empty_rset(self):
   109         """return a result set for the given eid without doing actual query
   109         """ return a guaranteed empty result """
   110         (we have the eid, we can suppose it exists and user has access to the
       
   111         entity)
       
   112         """
       
   113         rset = ResultSet([], 'Any X WHERE X eid -1')
   110         rset = ResultSet([], 'Any X WHERE X eid -1')
   114         rset.req = self
   111         rset.req = self
   115         return rset
   112         return rset
   116 
   113 
   117     def entity_from_eid(self, eid, etype=None):
   114     def entity_from_eid(self, eid, etype=None):