equal
deleted
inserted
replaced
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 |