Did I find the right examples for you? yes no

All Samples(47)  |  Call(28)  |  Derive(0)  |  Import(19)

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/browser/admin.py   Products.PloneGetPaid(Download)
    def __call__( self ):
        self.settings = interfaces.IGetPaidManagementOptions( self.context )
        return super( Overview, self).__call__()
 
    def getVersion( self ):
            interface = None
        if interface is not None:
            self.adapters = { interface : interfaces.IGetPaidManagementOptions( self.context ) }
        super( BaseSettingsForm, self).update()
 
            interface = None
        if interface is not None:
            self.adapters = { interface : interfaces.IGetPaidManagementOptions( self.context ) }
        super( ShippingServices, self).update()
 
    def setupProcessorOptions( self ):
        manage_options = interfaces.IGetPaidManagementOptions( self.context )
 
        processor_name = manage_options.payment_processor
        if not processor_name:

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/browser/checkout.py   Products.PloneGetPaid(Download)
from Products.PloneGetPaid.interfaces import INamedOrderUtility
 
from Products.PloneGetPaid.interfaces import IGetPaidManagementOptions, \
        IAddressBookUtility
from Products.PloneGetPaid.i18n import _
    def makePayment(self, action, data):
        """ create an order, and submit to the processor
        """
        siteroot = getToolByName(self.context, "portal_url").getPortalObject()
        manage_options = IGetPaidManagementOptions(siteroot)
    def _getProperty(self, name):
        portal = getToolByName(self.context, 'portal_url').getPortalObject()
        settings = IGetPaidManagementOptions(portal)
        value = getattr(settings, name, '')
        if value:

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/Extensions/install.py   Products.PloneGetPaid(Download)
from zope.component.hooks import setSite
from Products.PloneGetPaid import generations, preferences, addressbook, namedorder
from Products.PloneGetPaid.interfaces import IGetPaidManagementOptions, IAddressBookUtility, INamedOrderUtility
from Products.PloneGetPaid.cart import ShoppingCartUtility
from getpaid.core.interfaces import IOrderManager, IStore, IShoppingCartUtility, StoreInstalled, StoreUninstalled
def setup_payment_options(self):
    """ Set the default payment options for credit card types.
    """
    manage_options = IGetPaidManagementOptions(self)
    manage_options.setProperty('credit_cards', CREDIT_CARD_TYPES)

src/g/e/getpaid.verkkomaksut-0.1.1/getpaid/verkkomaksut/browser/checkout.py   getpaid.verkkomaksut(Download)
from Products.Five.browser import BrowserView
from AccessControl import getSecurityManager
from Products.PloneGetPaid.interfaces import IGetPaidManagementOptions, INamedOrderUtility
from Products.PloneGetPaid.browser.checkout import CheckoutReviewAndPay
from zope.component import getUtility, getMultiAdapter
    def update( self ):
        siteroot = getToolByName(self.context, "portal_url").getPortalObject()
        manage_options = IGetPaidManagementOptions(siteroot)
        order_manager = getUtility(IOrderManager)
        order = self.createOrder()
        """
        siteroot = getToolByName(self.context, "portal_url").getPortalObject()
        manage_options = IGetPaidManagementOptions(siteroot)
        properties = getToolByName(siteroot, 'portal_properties')
        processor = u'Verkkomaksut Processor'

src/g/e/getpaid.luottokunta-0.4.1/getpaid/luottokunta/browser/checkout.py   getpaid.luottokunta(Download)
from AccessControl import getSecurityManager
from Products.PloneGetPaid.browser.checkout import CheckoutReviewAndPay
from Products.Five.browser.pagetemplatefile import ZopeTwoPageTemplateFile
from Products.CMFCore.utils import getToolByName
from Products.PloneGetPaid.interfaces import IGetPaidManagementOptions, INamedOrderUtility
    def update( self ):
        siteroot = getToolByName(self.context, "portal_url").getPortalObject()
        manage_options = IGetPaidManagementOptions(siteroot)
        order_manager = getUtility(IOrderManager)
        order = self.createOrder()
        """
        siteroot = getToolByName(self.context, "portal_url").getPortalObject()
        manage_options = IGetPaidManagementOptions(siteroot)
        properties = getToolByName(siteroot, 'portal_properties')
        processor = u'Luottokunta Processor'

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/Extensions/gen_order.py   Products.PloneGetPaid(Download)
 
import random, string
from getpaid.core import cart, order, interfaces, item
from Products.PloneGetPaid.interfaces import IGetPaidManagementOptions
from zope import component
    # make sure we don't accidentally create notifications for sample orders
 
    settings = IGetPaidManagementOptions( self )
    m_a_value = settings.send_merchant_auth_notification
    c_a_value = settings.send_customer_auth_notification

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/browser/content.py   Products.PloneGetPaid(Download)
 
        portal = getToolByName( self.context, 'portal_url').getPortalObject()
        options = interfaces.IGetPaidManagementOptions( portal )
        self.options = options
 

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/currencyformatter.py   Products.PloneGetPaid(Download)
 
        # 1. read the setting
        options = interfaces.IGetPaidManagementOptions(portal)
 
        # 2. format the string

src/g/e/getpaid.pagseguro-0.2/src/getpaid/pagseguro/pagseguro.py   getpaid.pagseguro(Download)
from interfaces import IPagseguroStandardOptions, IPagseguroStandardProcessor
 
from Products.PloneGetPaid.interfaces import IGetPaidManagementOptions
from getpaid.core import interfaces as GetPaidInterfaces
 
    def cart_post_button( self, order ):
        options = IPagseguroStandardOptions( self.context )
        siteroot = getToolByName(self.context, "portal_url").getPortalObject()
        manage_options = IGetPaidManagementOptions( siteroot )        
        cartitems = []

src/g/e/getpaid.paypal-0.4.4/src/getpaid/paypal/paypal.py   getpaid.paypal(Download)
from interfaces import IPaypalStandardOptions, IPaypalStandardProcessor
 
from Products.PloneGetPaid.interfaces import IGetPaidManagementOptions
from getpaid.core import interfaces as GetPaidInterfaces
 
    def cart_post_button( self, order ):
        siteroot = getToolByName(self.context, "portal_url").getPortalObject()
        options = IPaypalStandardOptions( siteroot )
        manage_options = IGetPaidManagementOptions( siteroot )        
        cartitems = []

  1 | 2 | 3  Next