Changeset 6111


Ignore:
Timestamp:
16 May 2011, 10:09:08 (13 years ago)
Author:
Henrik Bettermann
Message:

Use APPLICATION_TYPES for both application_types_vocab and application_pins_vocab. This will ease the configuration and force officers not mix prefixes.

applicantscontainermanagepage.pt: Add missing colon.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt

    r6110 r6111  
    3636                          <span class="required" tal:condition="widget/required"
    3737                                >*</span><span i18n:translate=""
    38                                 tal:content="widget/label">label</span>
     38                                tal:content="widget/label">label</span>:
    3939                        </label>
    4040                        <label tal:condition="python:not hint"
     
    4242                          <span class="required" tal:condition="widget/required"
    4343                                >*</span><span i18n:translate=""
    44                                 tal:content="widget/label">label</span>
     44                                tal:content="widget/label">label</span>:
    4545                        </label>
    4646                      </td>
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r6110 r6111  
    5252#: Types of applications we support.
    5353APPLICATION_TYPES = (
    54     ('Pre-NCE Programme', 'prence'),
    55     ('Post UME Screening Test', 'pume'),
    56     ('Post UDE Screening', 'pude'),
    57     ('Part Time Degree in Education', 'sandwich'),
    58     ('Part-Time Degree Programmes', 'pt'),
    59     ('Diploma Programmes', 'dp'),
    60     ('PCE Screening', 'pce'),
    61     ('Certificate Programmes', 'ct'),
    62     ('Common Entry Screening Test (CEST)', 'cest'),
     54    ('General Studies', 'app','APP'),
     55    ('Pre-NCE Programme', 'prence','PRE'),
     56    ('Post UME Screening Test', 'pume','PUME'),
     57    ('Post UDE Screening', 'pude','PUDE'),
     58    ('Part Time Degree in Education', 'sandwich','SAND'),
     59    ('Part-Time Degree Programmes', 'pt','PTP'),
     60    ('Diploma Programmes', 'dp','DPP'),
     61    ('PCE Screening', 'pce','PCE'),
     62    ('Certificate Programmes', 'ct','CTP'),
     63    ('Common Entry Screening Test', 'cest','CEST'),
    6364    )
    6465
    6566#: A :class:`waeup.sirp.interfaces.SimpleWAeUPVocabulary` of supported
    6667#: application or screening types.
    67 application_types_vocab = SimpleWAeUPVocabulary(*APPLICATION_TYPES)
     68application_types_vocab = SimpleWAeUPVocabulary(*[(x[0],x[1]) for x in APPLICATION_TYPES])
     69application_pins_vocab = SimpleWAeUPVocabulary(*[(u"%s (%s)" % (x[2],x[0]),x[2]) for x in APPLICATION_TYPES])
    6870
    6971def yeararrange():
     
    200202        required = True,
    201203        default = None,
    202         values = ['APP','CEST','PUME','PUDE'],
     204        source = application_pins_vocab,
    203205        )
    204206
Note: See TracChangeset for help on using the changeset viewer.