Ignore:
Timestamp:
15 Jan 2016, 15:34:03 (9 years ago)
Author:
Henrik Bettermann
Message:

Add DegreeSource? and degree field to Certificate. Plugins must be updated!

Location:
main/waeup.kofa/trunk/src/waeup/kofa/browser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r13608 r13617  
    580580    def _set_inst_types(self):
    581581        study_modes = getUtility(IKofaUtils).INST_TYPES_DICT
    582         self.inst_types = study_modes.items()
     582        self.inst_types = sorted(study_modes.items())
    583583        return
    584584
     
    603603    def _set_study_modes(self):
    604604        study_modes = getUtility(IKofaUtils).STUDY_MODES_DICT
    605         self.study_modes = study_modes.items()
     605        self.study_modes = sorted(study_modes.items())
     606        return
     607
     608    def _set_degrees(self):
     609        degrees = getUtility(IKofaUtils).DEGREES_DICT
     610        self.degrees = sorted(degrees.items())
    606611        return
    607612
     
    613618    def _set_verdicts(self):
    614619        verdicts = getUtility(IKofaUtils).VERDICTS_DICT
    615         self.verdicts = verdicts.items()
     620        self.verdicts = sorted(verdicts.items())
    616621        return
    617622
     
    660665        self._set_study_levels()
    661666        self._set_study_modes()
     667        self._set_degrees()
    662668        self._set_student_states()
    663669        self._set_verdicts()
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py

    r13434 r13617  
    925925    title = _('Study Modes')
    926926
     927class DegreeSource(InstTypesSource):
     928    """Available study modes for the sources overview page.
     929    """
     930    grok.order(6)
     931    name = 'Degrees'
     932    source_name = 'degrees'
     933    title = _('Degrees')
     934
    927935class PaymentCatsSource(InstTypesSource):
    928936    """Available payment categories for the sources overview page.
    929937    """
    930     grok.order(6)
     938    grok.order(7)
    931939    name = 'PaymentCats'
    932940    source_name = 'payment_cats'
     
    936944    """Available application types for the sources overview page.
    937945    """
    938     grok.order(7)
     946    grok.order(8)
    939947    name = 'AppTypes'
    940948    source_name = 'app_types'
     
    944952    """Available application categories for the sources overview page.
    945953    """
    946     grok.order(8)
     954    grok.order(9)
    947955    name = 'AppCats'
    948956    source_name = 'app_cats'
Note: See TracChangeset for help on using the changeset viewer.