Changeset 13004 for main


Ignore:
Timestamp:
27 May 2015, 08:31:16 (9 years ago)
Author:
Henrik Bettermann
Message:

Add application types to sources overview.

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

    r12961 r13004  
    7070from waeup.kofa.mandates.mandate import PasswordMandate
    7171from waeup.kofa.datacenter import DataCenterFile
     72
     73from waeup.kofa.applicants.interfaces import IApplicantsUtils
    7274
    7375from waeup.kofa.students.catalog import StudentQueryResultItem
     
    577579        return
    578580
     581    def _set_app_types(self):
     582        app_types = getUtility(IApplicantsUtils).APP_TYPES_DICT
     583        self.app_types = [(x[0], x[1][0]) for x in app_types.items()]
     584        return
     585
    579586    def _set_payment_cats(self):
    580587        payment_cats = getUtility(IKofaUtils).PAYMENT_CATEGORIES
     
    601608        self._set_exam_grades()
    602609        self._set_app_cats()
     610        self._set_app_types()
    603611        self._set_payment_cats()
    604612        self._set_sex()
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py

    r12955 r13004  
    902902    title = _('Study Modes')
    903903
    904 class AppCatsSource(InstTypesSource):
    905     """Available application categories for the sources overview page.
    906     """
    907     grok.order(5)
    908     name = 'AppCats'
    909     source_name = 'app_cats'
    910     title = _('Application Categories')
    911 
    912904class PaymentCatsSource(InstTypesSource):
    913905    """Available payment categories for the sources overview page.
     
    917909    source_name = 'payment_cats'
    918910    title = _('Payment Categories')
     911
     912class AppTypesSource(InstTypesSource):
     913    """Available application types for the sources overview page.
     914    """
     915    grok.order(7)
     916    name = 'AppTypes'
     917    source_name = 'app_types'
     918    title = _('Application Types (Prefixes)')
     919
     920class AppCatsSource(InstTypesSource):
     921    """Available application categories for the sources overview page.
     922    """
     923    grok.order(8)
     924    name = 'AppCats'
     925    source_name = 'app_cats'
     926    title = _('Application Categories')
    919927
    920928class StudentStatesSource(InstTypesSource):
Note: See TracChangeset for help on using the changeset viewer.