ticket #771196, we do not want to display workflow history for BlogEntry stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 23 Mar 2010 18:39:13 +0100
branchstable
changeset 178 6762f7334915
parent 177 1d783e846e87
child 179 9d04f2fef2d6
ticket #771196, we do not want to display workflow history for BlogEntry
views/secondary.py
--- a/views/secondary.py	Tue Mar 23 18:38:17 2010 +0100
+++ b/views/secondary.py	Tue Mar 23 18:39:13 2010 +0100
@@ -16,7 +16,7 @@
 from cubicweb.selectors import paginated_rset, sorted_rset, implements, \
                                authenticated_user
 from cubicweb.web.htmlwidgets import BoxLink, BoxWidget
-from cubicweb.web.views import baseviews, boxes, calendar, navigation
+from cubicweb.web.views import baseviews, boxes, calendar, navigation, workflow
 
 class BlogEntryArchiveView(StartupView):
     """control the view of a blog archive"""
@@ -254,3 +254,10 @@
     def index_display(self, start, stop):
         return u'%s' % (int(start / self.page_size)+1)
 
+# WFHistoryView ###############################################################
+
+class BlogEntryWFHistoryVComponent(workflow.WFHistoryVComponent):
+    __select__ = workflow.WFHistoryVComponent.__select__ & implements('BlogEntry')
+
+    def cell_call(self, row, col, view=None):
+        pass