Did I find the right examples for you? yes no

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

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/Extensions/gen_order.py   Products.PloneGetPaid(Download)
 
        for i in range(0, 10):
            myItem = item.LineItem()
            myItem.name = "p%s"%random.choice( string.letters )
            myItem.quantity = random.randint(1,25)

src/g/e/getpaid.core-0.9.2/src/getpaid/core/tests/test_cart.py   getpaid.core(Download)
    def setUp(self):
        super(CartPolicyTests, self).setUp()
        self.cart = cart.ShoppingCart()
        self.nonrecurring = item.LineItem()
        self.nonrecurring.name = "Non-recurring"
    def testCanAddMultipleNonRecurring(self):
        self.cart[self.nonrecurring.item_id] = self.nonrecurring
        nonrecurring2 = item.LineItem()
        nonrecurring2.name = "Non Recurring 2"
        nonrecurring2.quantity = 1

src/g/e/getpaid.core-0.9.2/src/getpaid/core/tests/base.py   getpaid.core(Download)
 
        for i in range(0, 10):
            item = line_item.LineItem()
            item.name = "p%s"%random.choice( string.letters )
            item.quantity = random.randint(1,25)

src/g/e/getpaid.pxpay-0.5/src/getpaid/pxpay/tests/utils.py   getpaid.pxpay(Download)
     IOrderWorkflowLog
from getpaid.core.order import Order
from getpaid.core.item import LineItem
from getpaid.pxpay.interfaces import IPXPayInvalidMessageError, \
     IPXPayNetworkError
def create_test_order(context, order_id='1111111111'):
    """
    creates an order with a line item using a new cart.
    """
    item = LineItem()