- Timestamp:
- 21 Mar 2015, 06:27:06 (10 years ago)
- Location:
- main/ikobacustom.pcn/trunk/src/ikobacustom/pcn
- Files:
-
- 2 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 -
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/products/interfaces.py
r12803 r12805 27 27 28 28 contract_year = schema.Int( 29 title =u'Year of License',30 description =_(u'Enter 4-digit license year.'),31 required =False,32 min =1990,33 max =2050,29 title = u'Year of License', 30 description = _(u'Enter 4-digit license year.'), 31 required = False, 32 min = 1990, 33 max = 2050, 34 34 ) 35 35
Note: See TracChangeset for help on using the changeset viewer.