web/views/bookmark.py
changeset 4045 f4a52abb6f4f
parent 3720 5376aaadd16b
child 4252 6c4f109c2b03
--- a/web/views/bookmark.py	Tue Dec 08 16:46:56 2009 +0100
+++ b/web/views/bookmark.py	Tue Dec 08 16:50:36 2009 +0100
@@ -70,8 +70,8 @@
             return
         box = BoxWidget(req._(self.title), self.__regid__)
         box.listing_class = 'sideBox'
-        rschema = self._cw.schema.rschema(self.rtype)
-        eschema = self._cw.schema.eschema(self.etype)
+        rschema = self._cw.vreg.schema.rschema(self.rtype)
+        eschema = self._cw.vreg.schema.eschema(self.etype)
         candelete = rschema.has_perm(req, 'delete', toeid=ueid)
         if candelete:
             req.add_js( ('cubicweb.ajax.js', 'cubicweb.bookmarks.js') )