115 destination_state = SubjectRelation('State', cardinality='1*', |
115 destination_state = SubjectRelation('State', cardinality='1*', |
116 constraints=[RQLConstraint('T subworkflow_exit S, T transition_of WF, O state_of WF')], |
116 constraints=[RQLConstraint('T subworkflow_exit S, T transition_of WF, O state_of WF')], |
117 description=_('destination state')) |
117 description=_('destination state')) |
118 |
118 |
119 |
119 |
120 # XXX should we allow managers to delete TrInfo? |
|
121 |
|
122 class TrInfo(EntityType): |
120 class TrInfo(EntityType): |
123 """workflow history item""" |
121 """workflow history item""" |
124 # 'add' security actually done by hooks |
122 # 'add' security actually done by hooks |
125 permissions = { |
123 permissions = { |
126 'read': ('managers', 'users', 'guests',), # XXX U has_read_permission O ? |
124 'read': ('managers', 'users', 'guests',), # XXX U has_read_permission O ? |
127 'add': ('managers', 'users', 'guests',), |
125 'add': ('managers', 'users', 'guests',), |
128 'delete': (), |
126 'delete': (), # XXX should we allow managers to delete TrInfo? |
129 'update': ('managers', 'owners',), |
127 'update': ('managers', 'owners',), |
130 } |
128 } |
131 |
129 |
132 from_state = SubjectRelation('State', cardinality='1*') |
130 from_state = SubjectRelation('State', cardinality='1*') |
133 to_state = SubjectRelation('State', cardinality='1*') |
131 to_state = SubjectRelation('State', cardinality='1*') |