- Timestamp:
- 21 Mar 2015, 06:27:06 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/interfaces.py
r12803 r12805 37 37 from ikobacustom.pcn.customers.schoolgrades import ResultEntryField 38 38 39 def year_range():40 curr_year = datetime.now().year41 return range(curr_year - 20, curr_year + 2)42 39 43 40 class PracticeSource(BasicSourceFactory): … … 113 110 ) 114 111 115 qualification_year = schema. Choice(112 qualification_year = schema.Int( 116 113 title = _(u'Year of Qualification'), 117 required = True, 118 values = year_range(), 114 required = False, 115 min = 1990, 116 max = 2050, 119 117 ) 120 118 … … 961 959 ) 962 960 963 supervisor_year = schema. TextLine(961 supervisor_year = schema.Int( 964 962 title = _(u'Year of Qualification'), 965 963 description= _('Enter year of qualification of supervisor.'), 966 964 required = False, 967 readonly = False, 965 min = 1990, 966 max = 2050, 968 967 ) 969 968
Note: See TracChangeset for help on using the changeset viewer.