First page Back Continue Last page Overview Graphics
Custom Method Combination
class Product:
@dispatch.generic(Pricing)
def getPrice(product,cust=None,opts=()):
"""Get this product's price"""
@getPrice.add_when(default)
def __basePrice(product,cust,opts):
"""Include product's base price"""
return product.base_price
Notes: