Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

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
            item.total_occurrences = self.occurrences
        else:
            item = PayableLineItem()
        item.item_id = self.field.UID()
        if IIntIds:

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/content.py   Products.PloneGetPaid(Download)
    def createLineItem(self, payable, quantity):
        nitem = item.PayableLineItem()
        nitem.item_id = getUID(self.content)  # archetypes uid
 
        # we use intids to reference content that we can dereference cleanly
    def createLineItem(self, payable, amount):
        nitem = item.PayableLineItem()
 
        itemCount = 1
        uuid = getUID(self.content)

src/g/e/getpaid.pfgbuyableadapter-1.0.2/getpaid/pfgbuyableadapter/content/buyableformadapter.py   getpaid.pfgbuyableadapter(Download)
 
from getpaid.core.interfaces import IShoppingCartUtility
from getpaid.core.item import PayableLineItem
 
from Products.PloneFormGen.content.actionAdapter import \
            iid = intids.register(parent)
 
        nitem = PayableLineItem()
        nitem.item_id = parent.UID() # archetypes uid
        nitem.uid = iid