web/views/workflow.py
changeset 9402 2c48c091b6a2
parent 9383 7b3fa5a7a5a3
child 9440 6880674c1a26
equal deleted inserted replaced
9127:aff75b69db92 9402:2c48c091b6a2
    27 import os
    27 import os
    28 from warnings import warn
    28 from warnings import warn
    29 
    29 
    30 from logilab.mtconverter import xml_escape
    30 from logilab.mtconverter import xml_escape
    31 from logilab.common.graph import escape
    31 from logilab.common.graph import escape
       
    32 from logilab.common.deprecation import class_deprecated
    32 
    33 
    33 from cubicweb import Unauthorized
    34 from cubicweb import Unauthorized
    34 from cubicweb.predicates import (has_related_entities, one_line_rset,
    35 from cubicweb.predicates import (has_related_entities, one_line_rset,
    35                                 relation_possible, match_form_params,
    36                                 relation_possible, match_form_params,
    36                                 score_entity, is_instance, adaptable)
    37                                 score_entity, is_instance, adaptable)
   434     def build_dotpropshandler(self):
   435     def build_dotpropshandler(self):
   435         return WorkflowDotPropsHandler(self._cw)
   436         return WorkflowDotPropsHandler(self._cw)
   436 
   437 
   437 
   438 
   438 class TmpPngView(TmpFileViewMixin, EntityView):
   439 class TmpPngView(TmpFileViewMixin, EntityView):
       
   440     __metaclass__ = class_deprecated
       
   441     __deprecation_warning__ = '[3.18] %(cls)s is deprecated'
   439     __regid__ = 'tmppng'
   442     __regid__ = 'tmppng'
   440     __select__ = match_form_params('tmpfile')
   443     __select__ = match_form_params('tmpfile')
   441     content_type = 'image/png'
   444     content_type = 'image/png'
   442     binary = True
   445     binary = True
   443 
   446