web/views/ajaxedit.py
changeset 4045 f4a52abb6f4f
parent 3451 6b46d73823f5
child 4252 6c4f109c2b03
equal deleted inserted replaced
4044:3876c894e018 4045:f4a52abb6f4f
    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)