web/views/bookmark.py
changeset 4045 f4a52abb6f4f
parent 3720 5376aaadd16b
child 4252 6c4f109c2b03
equal deleted inserted replaced
4044:3876c894e018 4045:f4a52abb6f4f
    68         except Unauthorized:
    68         except Unauthorized:
    69             # can't access to something in the query, forget this box
    69             # can't access to something in the query, forget this box
    70             return
    70             return
    71         box = BoxWidget(req._(self.title), self.__regid__)
    71         box = BoxWidget(req._(self.title), self.__regid__)
    72         box.listing_class = 'sideBox'
    72         box.listing_class = 'sideBox'
    73         rschema = self._cw.schema.rschema(self.rtype)
    73         rschema = self._cw.vreg.schema.rschema(self.rtype)
    74         eschema = self._cw.schema.eschema(self.etype)
    74         eschema = self._cw.vreg.schema.eschema(self.etype)
    75         candelete = rschema.has_perm(req, 'delete', toeid=ueid)
    75         candelete = rschema.has_perm(req, 'delete', toeid=ueid)
    76         if candelete:
    76         if candelete:
    77             req.add_js( ('cubicweb.ajax.js', 'cubicweb.bookmarks.js') )
    77             req.add_js( ('cubicweb.ajax.js', 'cubicweb.bookmarks.js') )
    78         else:
    78         else:
    79             dlink = None
    79             dlink = None