[workflow] fix bw compat code
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 12 Oct 2010 19:10:08 +0200
changeset 6456 150246e77cda
parent 6455 3282742dd4c6
child 6457 3234d8d6e264
[workflow] fix bw compat code
web/views/workflow.py
--- 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: