Ignore:
Timestamp:
20 May 2011, 09:02:20 (13 years ago)
Author:
uli
Message:

Remove whitespace.
Fix overlong lines.
Rename yeararrange to year_range (what should a 'yeararrange' be?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py

    r6111 r6158  
    6666#: A :class:`waeup.sirp.interfaces.SimpleWAeUPVocabulary` of supported
    6767#: application or screening types.
    68 application_types_vocab = SimpleWAeUPVocabulary(*[(x[0],x[1]) for x in APPLICATION_TYPES])
    69 application_pins_vocab = SimpleWAeUPVocabulary(*[(u"%s (%s)" % (x[2],x[0]),x[2]) for x in APPLICATION_TYPES])
    70 
    71 def yeararrange():
     68application_types_vocab = SimpleWAeUPVocabulary(
     69    *[(x[0],x[1]) for x in APPLICATION_TYPES])
     70application_pins_vocab = SimpleWAeUPVocabulary(
     71    *[(u"%s (%s)" % (x[2],x[0]),x[2]) for x in APPLICATION_TYPES])
     72
     73def year_range():
    7274    curr_year = datetime.now().year
    7375    return range(curr_year - 2, curr_year + 5)
     
    186188        required = True,
    187189        default = None,
    188         values = yeararrange(),
     190        values = year_range(),
    189191        readonly = True,
    190192        )
     
    197199        readonly = True,
    198200        )
    199        
     201
    200202    ac_prefix = schema.Choice(
    201203        title = u'Access code prefix',
     
    274276        required = True,
    275277        default = None,
    276         values = yeararrange(),
     278        values = year_range(),
    277279        readonly = False,
    278280        )
Note: See TracChangeset for help on using the changeset viewer.