Did I find the right examples for you? yes no

All Samples(163)  |  Call(146)  |  Derive(0)  |  Import(17)

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/interfaces.py   Products.PloneGetPaid(Download)
import zope.viewlet.interfaces
 
from Products.PloneGetPaid.i18n import _
 
class IBeforeCheckoutEvent(IObjectEvent):
class IDonationLevel(Interface):
 
    title = schema.TextLine(title=_(u"Donation Level Name"))
    amount = schema.Int(title=_(u"Amount"))
 
class IEnhancedDonation(igetpaid.IDonationContent):
 
    donation_levels  = schema.List(title=_(u"Donation Levels"),
class IGetPaidManagementIdentificationOptions(igetpaid.IPersistentOptions):
 
    store_name = schema.TextLine(title = _(u"Store/Organization Name"),
                                  required = True,
                                  default = u""

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/browser/admin_order.py   Products.PloneGetPaid(Download)
 
from Products.PloneGetPaid import interfaces as ipgp
from Products.PloneGetPaid.i18n import _
from Products.PloneGetPaid.interfaces import ICountriesStates
from Products.PloneGetPaid.vocabularies import TitledVocabulary
 
    columns = [
        column.GetterColumn( title=_(u"Order Id"), getter=renderOrderId, cell_formatter=formatLinkCell ),
        column.GetterColumn( title=_(u"Proc Id"), getter=AttrColumn("processor_id" ) ),
        column.GetterColumn( title=_(u"Customer Id"), getter=AttrColumn("user_id" ) ),
        column.GetterColumn( title=_(u"Last4"), getter=AttrColumn("user_payment_info_last4" ) ),

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/browser/cart.py   Products.PloneGetPaid(Download)
from Products.PloneGetPaid import sessions
 
from Products.PloneGetPaid.i18n import _
from Products.CMFPlone.utils import safe_unicode
from Products.CMFPlone.i18nl10n import utranslate
    columns = [
        column.SelectionColumn( lambda item: item.item_id, name="selection"),
        column.FieldEditColumn( _(u"Quantity"), 'edit', interfaces.ILineItem['quantity'], lambda item: item.item_id ),
        column.GetterColumn( title=_(u"Name"), getter=lineItemURL, cell_formatter=formatLinkCell ),
        column.GetterColumn( title=_(u"Price"), getter=lineItemPrice ),
        column.GetterColumn( title=_(u"Total"), getter=lineItemTotal ),

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/vocabularies.py   Products.PloneGetPaid(Download)
from Products.CMFCore.utils import getToolByName
 
from Products.PloneGetPaid.i18n import _
 
def PaymentMethods( context ):
def WeightUnits( context ):
    return vocabulary.SimpleVocabulary.fromValues( (_(u"Pounds"),) )
 
def Currencies( context ):
    return vocabulary.SimpleVocabulary.fromValues( (_(u"US Dollars"),) )
def CustomerNotificationChoices( context ):
    return TitledVocabulary.fromTitles(
        [
        ("no_notification", _(u"Do not send customer email notification of a completed transaction")),
        ("notification", _(u"Send customer email notification of a completed transaction"))

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/browser/checkout.py   Products.PloneGetPaid(Download)
from Products.PloneGetPaid.interfaces import IGetPaidManagementOptions, \
        IAddressBookUtility
from Products.PloneGetPaid.i18n import _
from Products.PloneGetPaid.browser.cart import formatLinkCell
 
        book[entry] = ship_address_info
        self.context.plone_utils.addPortalMessage(
            _(u'A new address has been saved')
        )
 
    columns = [
        column.GetterColumn(
            title=_(u"Quantity"),
            getter=cart_core.LineItemColumn("quantity")
        ),
        column.GetterColumn(
            title=_(u"Name"),
        ),
        column.GetterColumn(
            title=_(u"Price"),
            getter=cart_core.lineItemPrice
        ),

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/browser/admin.py   Products.PloneGetPaid(Download)
 
from Products.PloneGetPaid.interfaces import ISettingsShipmentManager
from Products.PloneGetPaid.i18n import _
 
from Products.CMFCore.utils import getToolByName
    form_fields['contact_country'].custom_widget = CountrySelectionWidget
    form_fields['contact_state'].custom_widget = StateSelectionWidget
    form_name = _(u'Site Profile')
 
class ContentTypes( BaseSettingsForm ):
    form_fields = form_fields.omit('premium_types')
    #form_fields = form_fields.omit('shippable_types')
    form_name = _(u'Content Types')
 
    form_fields['buyable_types'].custom_widget = SelectWidgetFactory
    form_fields['shipping_methods'].custom_widget = SelectWidgetFactory
    form_fields['shipping_services'].custom_widget = SelectWidgetFactory
    form_name = _(u'Shipping Methods')
 
    template = ZopeTwoPageTemplateFile('templates/form.pt')
    form_fields = form.Fields(interfaces.IGetPaidManagementPaymentOptions)
    form_fields['accepted_credit_cards'].custom_widget = SelectWidgetFactory
    form_name = _(u'Payment Options')
    """
    def __init__( self, context, request ):

src/g/e/getpaid.pxpay-0.5/src/getpaid/pxpay/browser/checkout.py   getpaid.pxpay(Download)
from getpaid.pxpay.exceptions import PXPayException
 
from Products.PloneGetPaid.i18n import _
 
class PxPayCheckoutReviewAndPay( CheckoutReviewAndPay ):
 
    columns = [
        column.GetterColumn( title=_(u"Quantity"), getter=cart_core.LineItemColumn("quantity") ),
        column.GetterColumn( title=_(u"Name"), getter=cart_core.lineItemURL ),
        column.GetterColumn( title=_(u"Price"), getter=cart_core.lineItemPrice ),
        column.GetterColumn( title=_(u"Total"), getter=cart_core.lineItemTotal ),

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/browser/portlets/variableamountdonate.py   Products.PloneGetPaid(Download)
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.PloneGetPaid.browser.portlets.base import GetPaidRenderer
from Products.PloneGetPaid.i18n import _
from Products.PloneGetPaid.interfaces import IVariableAmountDonatableMarker
 
    def title(self):
        """Title shown in @@manage-portlets.
        """
        return _(u"Variable Amount Donation")
 

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/browser/portlets/ship.py   Products.PloneGetPaid(Download)
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.PloneGetPaid.browser.portlets.base import GetPaidRenderer
from Products.PloneGetPaid.i18n import _
from Products.PloneGetPaid.interfaces import IShippableMarker, ICurrencyFormatter
 
    def title(self):
        """Title shown in @@manage-portlets.
        """
        return _(u"Shippable")
 

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/browser/portlets/recurring.py   Products.PloneGetPaid(Download)
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.PloneGetPaid.browser.portlets.base import GetPaidRenderer
from Products.PloneGetPaid.i18n import _
from Products.PloneGetPaid.interfaces import IRecurringPaymentMarker, ICurrencyFormatter
 
    def title(self):
        """Title shown in @@manage-portlets.
        """
        return _(u"Recurring Payment")
 

  1 | 2  Next