Changeset 12764
- Timestamp:
- 15 Mar 2015, 06:18:19 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/browser.txt
r12762 r12764 47 47 And then change back to English by clicking on the third link containing 'en' 48 48 behind 'Anfragen' and 'Einloggen':: 49 >>> browser.getLink('en', index= 3).click()49 >>> browser.getLink('en', index=2).click() 50 50 >>> print browser.contents 51 51 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... -
main/waeup.ikoba/trunk/src/waeup/ikoba/payments/browser.py
r12763 r12764 48 48 grok.context(IIkobaObject) 49 49 grok.order(3) 50 grok.require('waeup. Public')50 grok.require('waeup.viewPayments') 51 51 grok.name('paymentstab') 52 52 … … 95 95 grok.context(IPaymentsContainer) 96 96 grok.name('index') 97 grok.require('waeup. managePortal')97 grok.require('waeup.viewPayments') 98 98 grok.template('containerpage') 99 99 label = _('Find payments') … … 134 134 grok.context(IPaymentsContainer) 135 135 grok.name('manage') 136 grok.require('waeup.manageP ortal')136 grok.require('waeup.managePayments') 137 137 grok.template('containermanagepage') 138 138 pnav = 5 -
main/waeup.ikoba/trunk/src/waeup/ikoba/permissions.py
r12347 r12764 71 71 grok.name('waeup.managePortalConfiguration') 72 72 73 class ViewPayments(grok.Permission): 74 grok.name('waeup.viewPayments') 75 76 class ManagePayments(grok.Permission): 77 grok.name('waeup.managePayments') 73 78 74 79 # Local Roles … … 125 130 grok.title(u'Workflow Manager') 126 131 grok.permissions('waeup.triggerTransition') 132 133 class PaymentsOfficer(grok.Role): 134 grok.name('waeup.PaymentsOfficer') 135 grok.title(u'Payments Officer (view only)') 136 grok.permissions('waeup.viewPayments') 137 138 class PaymentsManager(grok.Role): 139 grok.name('waeup.PaymentsManager') 140 grok.title(u'Payments Manager') 141 grok.permissions('waeup.viewPayments', 142 'waeup.managePayments') 127 143 128 144 class PortalManager(grok.Role): … … 145 161 'waeup.triggerTransition', 146 162 'waeup.viewCustomersTab', 147 'waeup.editContracts' 163 'waeup.editContracts', 164 'managePayments' 148 165 ) 149 166 … … 172 189 'waeup.triggerTransition', 173 190 'waeup.viewCustomersTab', 174 'waeup.editContracts' 191 'waeup.editContracts', 192 'managePayments' 175 193 ) 176 194 -
main/waeup.ikoba/trunk/src/waeup/ikoba/permissions.txt
r12207 r12764 39 39 >>> from waeup.ikoba.permissions import get_waeup_roles 40 40 >>> len(list(get_waeup_roles())) 41 1 541 17 42 42 43 43 >>> len(list(get_waeup_roles(also_local=True))) 44 1944 21 45 45 46 46 … … 62 62 u'waeup.ExportManager', 63 63 u'waeup.ImportManager', 64 u'waeup.PaymentsManager', 65 u'waeup.PaymentsOfficer', 64 66 u'waeup.PortalManager', 65 67 u'waeup.ProductsManager',
Note: See TracChangeset for help on using the changeset viewer.