- Timestamp:
- 10 Jun 2011, 08:04:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py
r6322 r6323 172 172 """ 173 173 timestamp = datetime.now().strftime("%d/%m/%Y %H:%M:%S") 174 # XXX: `messages` is meta data which shouldn't really be part of 175 # the Applicant class. Furthermore we should not store HTML 176 # code but simple messages. This has to be cleaned up 177 # further. For now we replace the redundant code in browser 178 # mod. As we're here: one could use permissions and similar 179 # to finetune transitions instead of doing that manually in 180 # UI stuff. 174 # XXX: We should not store HTML code but simple messages. 181 175 msg = '%s - %s (new state: %s)' % ( 182 176 timestamp, event.transition.user_data['msg'], event.destination) 183 msgs = getattr(obj, 'm essages', None)177 msgs = getattr(obj, 'msgs', None) 184 178 if msgs: 185 179 msgs += '<br />' … … 187 181 else: 188 182 msgs = msg 189 obj.m essages = msgs183 obj.msgs = msgs 190 184 return
Note: See TracChangeset for help on using the changeset viewer.