diff -r 3876c894e018 -r f4a52abb6f4f web/views/bookmark.py --- 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') )