equal
deleted
inserted
replaced
113 # use a relative path so that we can move the instance without |
113 # use a relative path so that we can move the instance without |
114 # loosing bookmarks |
114 # loosing bookmarks |
115 path = req.relative_path() |
115 path = req.relative_path() |
116 # XXX if vtitle specified in params, extract it and use it as default value |
116 # XXX if vtitle specified in params, extract it and use it as default value |
117 # for bookmark's title |
117 # for bookmark's title |
118 url = self.create_url(self.etype, __linkto=linkto, path=path) |
118 url = req.vreg['etypes'].etype_class('Bookmark').cw_create_url( |
|
119 req, __linkto=linkto, path=path) |
119 boxmenu.append(self.mk_action(req._('bookmark this page'), url, |
120 boxmenu.append(self.mk_action(req._('bookmark this page'), url, |
120 category='manage', id='bookmark')) |
121 category='manage', id='bookmark')) |
121 if rset: |
122 if rset: |
122 if req.user.is_in_group('managers'): |
123 if req.user.is_in_group('managers'): |
123 bookmarksrql = 'Bookmark B WHERE B bookmarked_by U, U eid %s' % ueid |
124 bookmarksrql = 'Bookmark B WHERE B bookmarked_by U, U eid %s' % ueid |