web/views/bookmark.py
changeset 4309 bdac9e9e76cd
parent 4306 01e5efc0d823
child 4311 e9e93967b7b5
equal deleted inserted replaced
4308:ab3f1520502c 4309:bdac9e9e76cd
    98             boxmenu = BoxMenu(req._('manage bookmarks'))
    98             boxmenu = BoxMenu(req._('manage bookmarks'))
    99             linkto = 'bookmarked_by:%s:subject' % ueid
    99             linkto = 'bookmarked_by:%s:subject' % ueid
   100             # use a relative path so that we can move the instance without
   100             # use a relative path so that we can move the instance without
   101             # loosing bookmarks
   101             # loosing bookmarks
   102             path = req.relative_path()
   102             path = req.relative_path()
       
   103             # XXX if vtitle specified in params, extract it and use it as default value
       
   104             # for bookmark's title
   103             url = self.create_url(self.etype, __linkto=linkto, path=path)
   105             url = self.create_url(self.etype, __linkto=linkto, path=path)
   104             boxmenu.append(self.mk_action(req._('bookmark this page'), url,
   106             boxmenu.append(self.mk_action(req._('bookmark this page'), url,
   105                                           category='manage', id='bookmark'))
   107                                           category='manage', id='bookmark'))
   106             if rset:
   108             if rset:
   107                 if req.user.is_in_group('managers'):
   109                 if req.user.is_in_group('managers'):