equal
deleted
inserted
replaced
183 from_state = SubjectRelation('State', cardinality='1*', inlined=True) |
183 from_state = SubjectRelation('State', cardinality='1*', inlined=True) |
184 to_state = SubjectRelation('State', cardinality='1*', inlined=True) |
184 to_state = SubjectRelation('State', cardinality='1*', inlined=True) |
185 # make by_transition optional because we want to allow managers to set |
185 # make by_transition optional because we want to allow managers to set |
186 # entity into an arbitrary state without having to respect wf transition |
186 # entity into an arbitrary state without having to respect wf transition |
187 by_transition = SubjectRelation('BaseTransition', cardinality='?*') |
187 by_transition = SubjectRelation('BaseTransition', cardinality='?*') |
188 comment = RichString(fulltextindexed=True) |
188 comment = RichString(fulltextindexed=True, default_format='text/plain') |
189 tr_count = Int(description='autocomputed attribute used to ensure transition coherency') |
189 tr_count = Int(description='autocomputed attribute used to ensure transition coherency') |
190 # get actor and date time using owned_by and creation_date |
190 # get actor and date time using owned_by and creation_date |
191 |
191 |
192 class from_state(RelationType): |
192 class from_state(RelationType): |
193 __permissions__ = RO_REL_PERMS.copy() |
193 __permissions__ = RO_REL_PERMS.copy() |