entities/wfobjs.py
branch3.5
changeset 2943 77622caef9bd
parent 2920 64322aa83a1d
child 2944 3bd49b70f7f9
equal deleted inserted replaced
2942:77ebdbe93cf8 2943:77622caef9bd
    27 
    27 
    28     def is_default_workflow_of(self, etype):
    28     def is_default_workflow_of(self, etype):
    29         """return True if this workflow is the default workflow for the given
    29         """return True if this workflow is the default workflow for the given
    30         entity type
    30         entity type
    31         """
    31         """
    32         return any(et for et in self.default_workflow_of if et.name == etype)
    32         return any(et for et in self.reverse_default_workflow
       
    33                    if et.name == etype)
    33 
    34 
    34     def after_deletion_path(self):
    35     def after_deletion_path(self):
    35         """return (path, parameters) which should be used as redirect
    36         """return (path, parameters) which should be used as redirect
    36         information when this entity is being deleted
    37         information when this entity is being deleted
    37         """
    38         """