equal
deleted
inserted
replaced
390 if descr: |
390 if descr: |
391 props['label'] += escape('\n'.join(descr)) |
391 props['label'] += escape('\n'.join(descr)) |
392 return props |
392 return props |
393 |
393 |
394 |
394 |
395 class WorkflowVisitor: |
395 class WorkflowVisitor(object): |
396 def __init__(self, entity): |
396 def __init__(self, entity): |
397 self.entity = entity |
397 self.entity = entity |
398 |
398 |
399 def nodes(self): |
399 def nodes(self): |
400 for state in self.entity.reverse_state_of: |
400 for state in self.entity.reverse_state_of: |
417 |
417 |
418 def build_visitor(self, entity): |
418 def build_visitor(self, entity): |
419 return WorkflowVisitor(entity) |
419 return WorkflowVisitor(entity) |
420 |
420 |
421 def build_dotpropshandler(self): |
421 def build_dotpropshandler(self): |
422 return WorkflowPropsHandler(self._cw) |
422 return WorkflowDotPropsHandler(self._cw) |
423 |
423 |
424 |
424 |
425 class TmpPngView(TmpFileViewMixin, view.EntityView): |
425 class TmpPngView(TmpFileViewMixin, view.EntityView): |
426 __regid__ = 'tmppng' |
426 __regid__ = 'tmppng' |
427 __select__ = match_form_params('tmpfile') |
427 __select__ = match_form_params('tmpfile') |