Changeset 11992 for main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba
- Timestamp:
- 19 Nov 2014, 15:33:16 (10 years ago)
- Location:
- main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/meta.zcml
r11949 r11992 17 17 /> 18 18 19 <meta:directive 20 namespace="http://namespaces.waeup.org/ikoba" 21 name="paypalconf" 22 schema=".zcml.IPayPalConfig" 23 handler=".zcml.paypal_conf" 24 /> 19 25 20 26 </configure> -
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/zcml.py
r11949 r11992 17 17 ## 18 18 from zope.component.zcml import handler 19 from waeup.ikoba.interfaces import IDataCenterConfig 19 from waeup.ikoba.interfaces import IDataCenterConfig, IPayPalConfig 20 20 21 21 def data_center_conf(context, path): … … 49 49 {'path':path}, IDataCenterConfig, '') 50 50 ) 51 52 53 def paypal_conf(context, path): 54 """Handler for ZCML paypalconf directive. 55 """ 56 context.action( 57 discriminator = ('utility', IPayPalConfig, ''), 58 callable = handler, 59 args = ( 60 'registerUtility', 61 {'path': path}, IPayPalConfig, '') 62 )
Note: See TracChangeset for help on using the changeset viewer.