equal
deleted
inserted
replaced
189 except KeyError: |
189 except KeyError: |
190 qname = role_name('wf_info_for', 'subject') |
190 qname = role_name('wf_info_for', 'subject') |
191 msg = session._('mandatory relation') |
191 msg = session._('mandatory relation') |
192 raise ValidationError(entity.eid, {qname: msg}) |
192 raise ValidationError(entity.eid, {qname: msg}) |
193 forentity = session.entity_from_eid(foreid) |
193 forentity = session.entity_from_eid(foreid) |
|
194 # see comment in the TrInfo entity definition |
|
195 entity.cw_edited['tr_count']=len(forentity.reverse_wf_info_for) |
194 iworkflowable = forentity.cw_adapt_to('IWorkflowable') |
196 iworkflowable = forentity.cw_adapt_to('IWorkflowable') |
195 # then check it has a workflow set, unless we're in the process of changing |
197 # then check it has a workflow set, unless we're in the process of changing |
196 # entity's workflow |
198 # entity's workflow |
197 if session.transaction_data.get((forentity.eid, 'customwf')): |
199 if session.transaction_data.get((forentity.eid, 'customwf')): |
198 wfeid = session.transaction_data[(forentity.eid, 'customwf')] |
200 wfeid = session.transaction_data[(forentity.eid, 'customwf')] |