%s%s
' % (self.req._('Used by:'), ', '.join(html_escape(u.name()) + for u in entity.bookmarked_by))) + self.w(u'diff -r 000000000000 -r b97547f5f1fa web/views/bookmark.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/views/bookmark.py Wed Nov 05 15:52:50 2008 +0100
@@ -0,0 +1,99 @@
+"""Primary view for bookmarks + user's bookmarks box
+
+:organization: Logilab
+:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
+"""
+__docformat__ = "restructuredtext en"
+
+from logilab.mtconverter import html_escape
+
+from cubicweb import Unauthorized
+from cubicweb.web.htmlwidgets import BoxWidget, BoxMenu, RawBoxItem
+from cubicweb.web.box import UserRQLBoxTemplate
+from cubicweb.web.views.baseviews import PrimaryView
+
+
+class BookmarkPrimaryView(PrimaryView):
+ accepts = ('Bookmark',)
+
+ def cell_call(self, row, col):
+ """the primary view for bookmark entity"""
+ entity = self.complete_entity(row, col)
+ self.w(u' ')
+ self.w(u"")
+ self.w(u"%s : %s" % (self.req._('Bookmark'), html_escape(entity.title)))
+ self.w(u"")
+ self.w(u'
%s%s
' % (self.req._('Used by:'), ', '.join(html_escape(u.name()) + for u in entity.bookmarked_by))) + self.w(u'