web/views/workflow.py
branchstable
changeset 9542 79b9bf88be28
parent 9440 6880674c1a26
child 10006 8391bf718485
--- a/web/views/workflow.py	Fri Feb 14 17:52:49 2014 +0100
+++ b/web/views/workflow.py	Mon Feb 17 11:13:27 2014 +0100
@@ -29,6 +29,7 @@
 
 from logilab.mtconverter import xml_escape
 from logilab.common.graph import escape
+from logilab.common.deprecation import class_deprecated
 
 from cubicweb import Unauthorized
 from cubicweb.predicates import (has_related_entities, one_line_rset,
@@ -436,6 +437,8 @@
 
 
 class TmpPngView(TmpFileViewMixin, EntityView):
+    __metaclass__ = class_deprecated
+    __deprecation_warning__ = '[3.18] %(cls)s is deprecated'
     __regid__ = 'tmppng'
     __select__ = match_form_params('tmpfile')
     content_type = 'image/png'