equal
deleted
inserted
replaced
19 st = self.cls.fetch_rqlst(self.request.cw_cnx.user, ordermethod=None) |
19 st = self.cls.fetch_rqlst(self.request.cw_cnx.user, ordermethod=None) |
20 st.add_constant_restriction(st.get_variable('X'), self.attrname, |
20 st.add_constant_restriction(st.get_variable('X'), self.attrname, |
21 'x', 'Substitute') |
21 'x', 'Substitute') |
22 if self.attrname == 'eid': |
22 if self.attrname == 'eid': |
23 try: |
23 try: |
24 rset = self.request.cw_cnx.execute( |
24 rset = self.request.cw_request.execute( |
25 st.as_string(), {'x': int(self.value)}) |
25 st.as_string(), {'x': int(self.value)}) |
26 except (ValueError, TypeResolverException): |
26 except (ValueError, TypeResolverException): |
27 # conflicting eid/type |
27 # conflicting eid/type |
28 raise HTTPNotFound() |
28 raise HTTPNotFound() |
29 else: |
29 else: |
30 rset = self.request.cw_cnx.execute( |
30 rset = self.request.cw_request.execute( |
31 st.as_string(), {'x': unicode(self.value)}) |
31 st.as_string(), {'x': unicode(self.value)}) |
32 return rset |
32 return rset |
33 |
33 |
34 |
34 |
35 class ETypeResource(object): |
35 class ETypeResource(object): |