req.py
changeset 9469 032825bbacab
parent 9459 d3016c08b4ae
child 9480 14159c600dad
equal deleted inserted replaced
9468:39b7a91a3f4c 9469:032825bbacab
   129         (we have the eid, we can suppose it exists and user has access to the
   129         (we have the eid, we can suppose it exists and user has access to the
   130         entity)
   130         entity)
   131         """
   131         """
   132         eid = int(eid)
   132         eid = int(eid)
   133         if etype is None:
   133         if etype is None:
   134             etype = self.describe(eid)[0]
   134             etype = self.entity_metas(eid)['type']
   135         rset = ResultSet([(eid,)], 'Any X WHERE X eid %(x)s', {'x': eid},
   135         rset = ResultSet([(eid,)], 'Any X WHERE X eid %(x)s', {'x': eid},
   136                          [(etype,)])
   136                          [(etype,)])
   137         rset.req = self
   137         rset.req = self
   138         return rset
   138         return rset
   139 
   139