equal
deleted
inserted
replaced
30 def cell_call(self, row, col, rtype=None, target=None, etype=None): |
30 def cell_call(self, row, col, rtype=None, target=None, etype=None): |
31 self.rtype = rtype or self._cw.form['rtype'] |
31 self.rtype = rtype or self._cw.form['rtype'] |
32 self.target = target or self._cw.form['target'] |
32 self.target = target or self._cw.form['target'] |
33 self.etype = etype or self._cw.form.get('etype') |
33 self.etype = etype or self._cw.form.get('etype') |
34 entity = self.cw_rset.get_entity(row, col) |
34 entity = self.cw_rset.get_entity(row, col) |
35 rschema = self._cw.schema.rschema(self.rtype) |
35 rschema = self._cw.vreg.schema.rschema(self.rtype) |
36 if not self.etype: |
36 if not self.etype: |
37 if self.target == 'object': |
37 if self.target == 'object': |
38 etypes = rschema.objects(entity.e_schema) |
38 etypes = rschema.objects(entity.e_schema) |
39 else: |
39 else: |
40 etypes = rschema.subjects(entity.e_schema) |
40 etypes = rschema.subjects(entity.e_schema) |