Changeset 6323
- Timestamp:
- 10 Jun 2011, 08:04:12 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/form_display.pt
r6307 r6323 5 5 <h2> ... <span tal:replace="view/getApplicationState">Application State</span> ... </h2> 6 6 7 <div class="workflow" tal:content="structure context/m essages">Application Workflow</div>7 <div class="workflow" tal:content="structure context/msgs">Application Workflow</div> 8 8 9 9 <table class="zebra"> -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/form_edit.pt
r6322 r6323 8 8 <h2> ... <span tal:replace="view/getApplicationState">Application State</span> ... </h2> 9 9 10 <div class="workflow" tal:content="structure context/m essages">Application Workflow</div>10 <div class="workflow" tal:content="structure context/msgs">Application Workflow</div> 11 11 12 12 -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r6322 r6323 283 283 state, depending on use-case. 284 284 """ 285 m essages = Attribute('Workflow transitions with date of transition.')285 msgs = Attribute('Workflow transitions with date of transition.') 286 286 287 287 reg_no = schema.TextLine( -
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.