web/views/bookmark.py
changeset 5174 78438ad513ca
parent 5113 f8cbdb51e6d4
child 5423 e15abfdcce38
equal deleted inserted replaced
5173:73760bbb66bd 5174:78438ad513ca
   110                     bookmarksrql = 'Bookmark B WHERE B bookmarked_by U, U eid %s' % ueid
   110                     bookmarksrql = 'Bookmark B WHERE B bookmarked_by U, U eid %s' % ueid
   111                     erset = rset
   111                     erset = rset
   112                 else:
   112                 else:
   113                     # we can't edit shared bookmarks we don't own
   113                     # we can't edit shared bookmarks we don't own
   114                     bookmarksrql = 'Bookmark B WHERE B bookmarked_by U, B owned_by U, U eid %(x)s'
   114                     bookmarksrql = 'Bookmark B WHERE B bookmarked_by U, B owned_by U, U eid %(x)s'
   115                     erset = req.execute(bookmarksrql, {'x': ueid}, 'x',
   115                     erset = req.execute(bookmarksrql, {'x': ueid},
   116                                         build_descr=False)
   116                                         build_descr=False)
   117                     bookmarksrql %= {'x': ueid}
   117                     bookmarksrql %= {'x': ueid}
   118                 if erset:
   118                 if erset:
   119                     url = self._cw.build_url(vid='muledit', rql=bookmarksrql)
   119                     url = self._cw.build_url(vid='muledit', rql=bookmarksrql)
   120                     boxmenu.append(self.mk_action(self._cw._('edit bookmarks'), url, category='manage'))
   120                     boxmenu.append(self.mk_action(self._cw._('edit bookmarks'), url, category='manage'))