Changeset 13617 for main/waeup.kofa/trunk/src/waeup/kofa/university
- Timestamp:
- 15 Jan 2016, 15:34:03 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/university
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/certificate.py
r12620 r13617 59 59 school_fee_1=None, school_fee_2=None, 60 60 school_fee_3=None, school_fee_4=None, 61 ratio=None, 61 ratio=None, degree=None, 62 62 custom_textline_1=None, custom_textline_2=None, 63 63 custom_float_1=None, custom_float_2=None): … … 74 74 self.school_fee_4 = school_fee_4 75 75 self.ratio = ratio 76 self.degree = degree 76 77 self.custom_textline_1 = custom_textline_1 77 78 self.custom_textline_2 = custom_textline_2 -
main/waeup.kofa/trunk/src/waeup/kofa/university/interfaces.py
r13399 r13617 30 30 InstTypeSource, 31 31 SemesterSource, 32 DegreeSource, 32 33 ) 33 34 … … 173 174 default = u'ug_ft', 174 175 required = True, 176 ) 177 178 degree = schema.Choice( 179 title = _(u'Degree'), 180 source = DegreeSource(), 181 required = False, 175 182 ) 176 183 -
main/waeup.kofa/trunk/src/waeup/kofa/university/vocabularies.py
r12862 r13617 68 68 DICT_NAME = 'STUDY_MODES_DICT' 69 69 70 class DegreeSource(ContextualDictSourceFactoryBase): 71 """A source for certificate degrees 72 """ 73 #: name of dict to deliver from kofa utils. 74 DICT_NAME = 'DEGREES_DICT' 75 76 def getTitle(self, context, value): 77 utils = getUtility(IKofaUtils) 78 return "%s (%s)" % (getattr(utils, self.DICT_NAME)[value], value) 79 70 80 class CourseSource(BasicSourceFactory): 71 81 """A course source delivers all courses inside the portal by looking
Note: See TracChangeset for help on using the changeset viewer.