Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/Extensions/install.py   Products.PloneGetPaid(Download)
from Products.PloneGetPaid.cart import ShoppingCartUtility
from getpaid.core.interfaces import IOrderManager, IStore, IShoppingCartUtility, StoreInstalled, StoreUninstalled
from getpaid.core.order import OrderManager
from getpaid.core.payment import CREDIT_CARD_TYPES
 
    is_already_registered = [u for u in sm.getUtilitiesFor(IOrderManager)]
    if not len(is_already_registered):
        manager = OrderManager()
        try:
            sm.registerUtility(component=manager, provided=IOrderManager)

src/g/e/getpaid.core-0.9.2/src/getpaid/core/tests/base.py   getpaid.core(Download)
                         store.StoreVersions())
 
    ztapi.provideUtility( IOrderManager, order.OrderManager() )
 
    ztapi.provideAdapter( IOrder, IOrderWorkflowLog, order.OrderWorkflowLog )