First page Back Continue Last page Overview Graphics
Specifying Method Combination
@Product.getPrice.add_when(
"'blue suede' in opts"
)
def blueSuedeUpcharge(product,cust,opts):
return 24.95
@Product.getPrice.discount_when(
"cust=='Elvis' and 'blue suede'"
" in opts and product is shoes"
)
def ElvisDiscount(product,cust,opts):
return .1
Notes: