Changeset 6158
- Timestamp:
- 20 May 2011, 09:02:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r6111 r6158 66 66 #: A :class:`waeup.sirp.interfaces.SimpleWAeUPVocabulary` of supported 67 67 #: 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(): 68 application_types_vocab = SimpleWAeUPVocabulary( 69 *[(x[0],x[1]) for x in APPLICATION_TYPES]) 70 application_pins_vocab = SimpleWAeUPVocabulary( 71 *[(u"%s (%s)" % (x[2],x[0]),x[2]) for x in APPLICATION_TYPES]) 72 73 def year_range(): 72 74 curr_year = datetime.now().year 73 75 return range(curr_year - 2, curr_year + 5) … … 186 188 required = True, 187 189 default = None, 188 values = year arrange(),190 values = year_range(), 189 191 readonly = True, 190 192 ) … … 197 199 readonly = True, 198 200 ) 199 201 200 202 ac_prefix = schema.Choice( 201 203 title = u'Access code prefix', … … 274 276 required = True, 275 277 default = None, 276 values = year arrange(),278 values = year_range(), 277 279 readonly = False, 278 280 )
Note: See TracChangeset for help on using the changeset viewer.