- Timestamp:
- 10 Jun 2011, 15:41:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py
r6335 r6339 10 10 InvalidTransitionError, IWorkflowTransitionEvent) 11 11 from waeup.sirp.applicants.interfaces import IApplicantBaseData 12 from waeup.sirp.interfaces import IObjectHistory 12 13 13 14 … … 172 173 """ 173 174 timestamp = datetime.now().strftime("%d/%m/%Y %H:%M:%S") 174 # XXX: We should not store HTML code but simple messages.175 175 msg = '%s - %s (new state: %s)' % ( 176 176 timestamp, event.transition.user_data['msg'], event.destination) 177 msgs = getattr(obj, 'msgs', None) 178 if msgs: 179 msgs += '<br />' 180 msgs += msg 181 else: 182 msgs = msg 183 obj.msgs = msgs 177 history = IObjectHistory(obj) 178 history.addMessage(msg) 184 179 return
Note: See TracChangeset for help on using the changeset viewer.