Did I find the right examples for you? yes no

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)

src/p/f/pfg.donationform-1.2.3/pfg/donationform/cart.py   pfg.donationform(Download)
from zope.event import notify
from zope.component import adapts, queryUtility
from zope.interface import implements, alsoProvides
from getpaid.core.interfaces import ILineItemFactory, IShoppingCart
from getpaid.core.item import PayableLineItem, RecurringLineItem
 
        if self.is_recurring:
            item = RecurringLineItem()
            item.interval = 1
            item.unit = 'months'

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/content.py   Products.PloneGetPaid(Download)
    def createLineItem(self, payable, quantity):
 
        nitem = item.RecurringLineItem()
        nitem.item_id = getUID(self.content)  # archetypes uid
 

src/g/e/getpaid.core-0.9.2/src/getpaid/core/tests/test_cart.py   getpaid.core(Download)
        self.nonrecurring.cost = 25
        self.nonrecurring.item_id = "nonrecurring"
        self.recurring = item.RecurringLineItem()
        self.recurring.name = "Recurring"
        self.recurring.quantity = 1
    def testNoAddRecurringToPopulatedRecurringCart(self):
        self.cart[self.recurring.item_id] = self.recurring
        recurring2 = item.RecurringLineItem()
        recurring2.name = "Recurring 2"
        recurring2.quantity = 1

src/g/e/getpaid.core-0.9.2/src/getpaid/core/tests/base.py   getpaid.core(Download)
        o.shopping_cart = sc = cart.ShoppingCart()
 
        item = line_item.RecurringLineItem()
        item.name = "p%s"%random.choice( string.letters )
        item.quantity = random.randint(1,25)