Changeset 13119 for main


Ignore:
Timestamp:
30 Jun 2015, 17:25:26 (9 years ago)
Author:
Henrik Bettermann
Message:

Add DisablePaymentGroupSource? viewlet.

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

    r13055 r13119  
    597597        return
    598598
     599    def _set_disable_payment_groups(self):
     600        disable_payment_groups = getUtility(
     601            IKofaUtils).DISABLE_PAYMENT_GROUP_DICT
     602        self.disable_payment_groups = sorted(disable_payment_groups.items())
     603        return
     604
    599605    def update(self):
    600606        self._set_inst_types()
     
    611617        self._set_payment_cats()
    612618        self._set_sex()
     619        self. _set_disable_payment_groups()
    613620        return
    614621
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py

    r13004 r13119  
    976976    title = _('Sex')
    977977
     978class DisablePaymentGroupSource(InstTypesSource):
     979    """Available sex values for the sources overview page.
     980    """
     981    grok.order(7)
     982    grok.viewletmanager(SourcesRight)
     983    column = 'right'
     984    name = 'DisablePaymentGroups'
     985    source_name = 'disable_payment_groups'
     986    title = _('Disable Payment Groups')
     987
Note: See TracChangeset for help on using the changeset viewer.