Ignore:
Timestamp:
10 Jun 2011, 08:04:12 (14 years ago)
Author:
Henrik Bettermann
Message:

Replace reserved term 'messages' by 'msgs'.

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  
    55<h2> ... <span tal:replace="view/getApplicationState">Application State</span> ... </h2>
    66
    7 <div class="workflow" tal:content="structure context/messages">Application Workflow</div>
     7<div class="workflow" tal:content="structure context/msgs">Application Workflow</div>
    88
    99<table class="zebra">
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/form_edit.pt

    r6322 r6323  
    88  <h2> ... <span tal:replace="view/getApplicationState">Application State</span> ... </h2>
    99
    10   <div class="workflow" tal:content="structure context/messages">Application Workflow</div>
     10  <div class="workflow" tal:content="structure context/msgs">Application Workflow</div>
    1111
    1212 
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r6322 r6323  
    283283    state, depending on use-case.
    284284    """
    285     messages = Attribute('Workflow transitions with date of transition.')
     285    msgs = Attribute('Workflow transitions with date of transition.')
    286286
    287287    reg_no = schema.TextLine(
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py

    r6322 r6323  
    172172    """
    173173    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.
    181175    msg = '%s - %s (new state: %s)' % (
    182176        timestamp, event.transition.user_data['msg'], event.destination)
    183     msgs = getattr(obj, 'messages', None)
     177    msgs = getattr(obj, 'msgs', None)
    184178    if msgs:
    185179        msgs += '<br />'
     
    187181    else:
    188182        msgs = msg
    189     obj.messages = msgs
     183    obj.msgs = msgs
    190184    return
Note: See TracChangeset for help on using the changeset viewer.