web/views/editviews.py
changeset 4045 f4a52abb6f4f
parent 4023 eae23c40627a
child 4161 4273f5094651
--- a/web/views/editviews.py	Tue Dec 08 16:46:56 2009 +0100
+++ b/web/views/editviews.py	Tue Dec 08 16:50:36 2009 +0100
@@ -80,7 +80,7 @@
     def cell_call(self, row, col):
         entity = self.cw_rset.get_entity(row, col)
         relname, target = self._cw.form.get('relation').rsplit('_', 1)
-        rschema = self._cw.schema.rschema(relname)
+        rschema = self._cw.vreg.schema.rschema(relname)
         hidden = 'hidden' in self._cw.form
         is_cell = 'is_cell' in self._cw.form
         self.w(self.build_unrelated_select_div(entity, rschema, target,
@@ -101,7 +101,7 @@
         options.append('<option>%s %s</option>' % (self._cw._('select a'), etypes))
         options += self._get_select_options(entity, rschema, target)
         options += self._get_search_options(entity, rschema, target, targettypes)
-        if 'Basket' in self._cw.schema: # XXX
+        if 'Basket' in self._cw.vreg.schema: # XXX
             options += self._get_basket_options(entity, rschema, target, targettypes)
         relname, target = self._cw.form.get('relation').rsplit('_', 1)
         return u"""\