web/views/workflow.py
changeset 6456 150246e77cda
parent 6366 1806148d6ce8
child 6473 2b09a410ff8e
--- a/web/views/workflow.py	Tue Oct 12 19:09:52 2010 +0200
+++ b/web/views/workflow.py	Tue Oct 12 19:10:08 2010 +0200
@@ -161,17 +161,17 @@
                        displaycols=displaycols, headers=headers)
 
 
-class WFHistoryVComponent(component.CtxComponent):
+class WFHistoryVComponent(component.EntityCtxComponent):
     """display the workflow history for entities supporting it"""
     __regid__ = 'wfhistory'
-    __select__ = component.EntityVComponent.__select__ & WFHistoryView.__select__
+    __select__ = component.EntityCtxComponent.__select__ & WFHistoryView.__select__
     context = 'navcontentbottom'
     title = _('Workflow history')
 
     def render_body(self, w):
         if hasattr(self, 'cell_call'):
-            warn('[3.10] %s should now implement render_body instead of cell_call',
-                 DeprecationWarning, self.__class__)
+            warn('[3.10] %s should now implement render_body instead of cell_call'
+                 % self.__class__, DeprecationWarning)
             self.w = w
             self.cell_call(self.entity.cw_row, self.entity.cw_col)
         else: