equal
deleted
inserted
replaced
131 |
131 |
132 from_state = SubjectRelation('State', cardinality='1*') |
132 from_state = SubjectRelation('State', cardinality='1*') |
133 to_state = SubjectRelation('State', cardinality='1*') |
133 to_state = SubjectRelation('State', cardinality='1*') |
134 # make by_transition optional because we want to allow managers to set |
134 # make by_transition optional because we want to allow managers to set |
135 # entity into an arbitrary state without having to respect wf transition |
135 # entity into an arbitrary state without having to respect wf transition |
136 by_transition = SubjectRelation('Transition', cardinality='?*') |
136 by_transition = SubjectRelation('BaseTransition', cardinality='?*') |
137 comment = RichString(fulltextindexed=True) |
137 comment = RichString(fulltextindexed=True) |
138 # get actor and date time using owned_by and creation_date |
138 # get actor and date time using owned_by and creation_date |
139 |
139 |
140 class from_state(RelationType): |
140 class from_state(RelationType): |
141 permissions = HOOKS_RTYPE_PERMS.copy() |
141 permissions = HOOKS_RTYPE_PERMS.copy() |