At 05:13 PM 12/21/00 +1100, Itai Tavor wrote:
I think you're right about this being an OrderLineItem. A couple of fine
points, however... First, I don't think there needs to be an
"OrderLineItemsWithGraphic" specialist, since there is nothing else that
would talk to it. It's fine in this case
Phillip J. Eby wrote:
This should probably be more like:
product.addMeToOrder():
item = OrderLineItems.newLineItemFor(self)
item.setQuantity(...)
etc.
order.addLineItem(item)
customizable_product.addMeToOrder():
item = OrderLineItems.newLineItemFor(self)
At 04:21 PM 12/18/00 +1100, Itai Tavor wrote:
This is how I see it:
- Products Specialist
productRack
customizableProductRack
- OrderLineItem Specialist
lineItemRack
lineItemWithGraphicRack
- product.addMeToOrder():
order.addLineItem(product_id=id, add='lineItem')
-
Itai Tavor wrote:
I have the following ZClasses, with matching Specialists:
Product, Graphic, Order, OrderLineItem. When a customer adds a product
to their order, they have to provide a graphic file which will be
printed on the product (imagine buying a lunch box with your cat's photo