web/views/ajaxedit.py
changeset 4045 f4a52abb6f4f
parent 3451 6b46d73823f5
child 4252 6c4f109c2b03
--- a/web/views/ajaxedit.py	Tue Dec 08 16:46:56 2009 +0100
+++ b/web/views/ajaxedit.py	Tue Dec 08 16:50:36 2009 +0100
@@ -32,7 +32,7 @@
         self.target = target or self._cw.form['target']
         self.etype = etype or self._cw.form.get('etype')
         entity = self.cw_rset.get_entity(row, col)
-        rschema = self._cw.schema.rschema(self.rtype)
+        rschema = self._cw.vreg.schema.rschema(self.rtype)
         if not self.etype:
             if self.target == 'object':
                 etypes = rschema.objects(entity.e_schema)