web/views/iprogress.py
changeset 8037 a36bd56f33bb
parent 7475 a70456bbb4bd
child 8038 678d22a56ab6
--- a/web/views/iprogress.py	Fri Oct 28 11:33:25 2011 +0200
+++ b/web/views/iprogress.py	Fri Oct 28 11:33:26 2011 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
@@ -22,6 +22,7 @@
 
 from math import floor
 
+from logilab.common.deprecation import class_deprecated
 from logilab.mtconverter import xml_escape
 
 from cubicweb.utils import make_uid
@@ -47,6 +48,8 @@
 
     header_for_COLNAME methods allow to customize header's label
     """
+    __metaclass__ = class_deprecated
+    __deprecation_warning__ = '[3.14] %(cls)s is deprecated'
 
     __regid__ = 'progress_table_view'
     __select__ = adaptable('IMileStone')
@@ -59,6 +62,7 @@
                _('cost'), _('progress'), _('todo_by'))
 
     def cell_call(self, row, col):
+        x
         _ = self._cw._
         entity = self.cw_rset.get_entity(row, col)
         infos = {}
@@ -150,9 +154,12 @@
     """this views redirects to ``progress_table_view`` but removes
     the ``project`` column
     """
+    __metaclass__ = class_deprecated
+    __deprecation_warning__ = '[3.14] %(cls)s is deprecated'
     __regid__ = 'ic_progress_table_view'
 
     def call(self, columns=None):
+        x
         view = self._cw.vreg['views'].select('progress_table_view', self._cw,
                                          rset=self.cw_rset)
         columns = list(columns or view.columns)
@@ -165,6 +172,8 @@
 
 class ProgressBarView(EntityView):
     """displays a progress bar"""
+    __metaclass__ = class_deprecated
+    __deprecation_warning__ = '[3.14] %(cls)s is deprecated'
     __regid__ = 'progressbar'
     __select__ = adaptable('IProgress')
 
@@ -196,6 +205,7 @@
         return cls.overrun(iprogress) * 100. / budget
 
     def cell_call(self, row, col):
+        x
         self._cw.add_css('cubicweb.iprogress.css')
         self._cw.add_js('cubicweb.iprogress.js')
         entity = self.cw_rset.get_entity(row, col)