Ignore:
Timestamp:
15 Mar 2015, 06:57:16 (10 years ago)
Author:
Henrik Bettermann
Message:

Add PaymentsManageActionButton?.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/payments/browser.py

    r12764 r12765  
    2222from waeup.ikoba.interfaces import IIkobaObject
    2323from waeup.ikoba.interfaces import MessageFactory as _
    24 from waeup.ikoba.browser.viewlets import PrimaryNavTab
     24from waeup.ikoba.browser.viewlets import PrimaryNavTab, ManageActionButton
    2525from waeup.ikoba.browser.layout import (
    2626    IkobaPage, IkobaEditFormPage, IkobaDisplayFormPage,
     
    129129
    130130
     131class PaymentsManageActionButton(ManageActionButton):
     132    grok.order(1)
     133    grok.context(IPaymentsContainer)
     134    grok.view(PaymentsContainerPage)
     135    grok.require('waeup.managePayments')
     136    text = _('Manage')
     137    target = 'manage'
     138
     139
    131140class PaymentsContainerManagePage(IkobaPage):
    132141    """The manage page for payment containers.
  • main/waeup.ikoba/trunk/src/waeup/ikoba/permissions.py

    r12764 r12765  
    162162                     'waeup.viewCustomersTab',
    163163                     'waeup.editContracts',
    164                      'managePayments'
     164                     'waeup.viewPayments', 'waeup.managePayments',
    165165                     )
    166166
     
    190190                     'waeup.viewCustomersTab',
    191191                     'waeup.editContracts',
    192                      'managePayments'
     192                     'waeup.viewPayments', 'waeup.managePayments',
    193193                     )
    194194
Note: See TracChangeset for help on using the changeset viewer.