Module ImportFrom alias alias ImportFrom alias identifier ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Num Assign NameStore ListLoad If CompareGt NameLoad Num body For NameStore Call NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Str Assign NameStore Call NameLoad Str If CompareEq Call AttributeLoad NameLoad attr NameLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num If CompareEq NameLoad Str body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str orelse If NameLoad body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Str ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Str If CompareGt NameLoad Num body ImportFrom alias TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Call NameLoad Str Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Return TupleLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list
N/A decimal Decimal InvalidOperation django.utils.translation ugettext_lazy _ satchmo_store.shop.exceptions CartAddProhibited N/A logging N/A log N/A N/A logging getLogger upsell.views cart_add_listener N/A N/A cart product form request N/A None None None None kwargs N/A N/A Post-processes the form, handling upsell formfields.

    fields (potentially) in the form:
        upsell_count: controls how many upsell formblocks to look for.
        for ix in range(0,upsell_count):
            upsell_include_ix: true if this one is to be included
            upsell_qty_ix: quantity
            upsell_slug_ix: product slug
     N/A N/A N/A log debug cart_add_listener heard satchmo_cart_add_complete N/A N/A N/A rawct N/A N/A form get upsell_count 0 N/A ct N/A int rawct N/A N/A N/A ValueError N/A N/A N/A N/A log debug Got bad upsell_count: %s rawct N/A ct 0 N/A results N/A N/A N/A ct 0 N/A N/A i N/A range 0 ct N/A N/A N/A N/A results append N/A _add_upsell form cart i N/A results N/A _add_upsell N/A N/A form cart i N/A N/A N/A field_include N/A upsell_include_%s i N/A field_qty N/A upsell_qty_%s i N/A field_slug N/A upsell_slug_%s i N/A slug N/A qty N/A Decimal 0 N/A N/A N/A N/A form get field_include false true N/A N/A slug N/A N/A form get field_slug N/A slug N/A N/A N/A N/A rawqty N/A N/A form get field_qty 0 N/A N/A rawqty MATCH N/A N/A qty N/A Decimal N/A form N/A quantity N/A N/A rawqty N/A N/A qty N/A Decimal rawqty N/A N/A N/A ValueError N/A N/A N/A N/A log debug Bad upsell qty=%d rawqty N/A qty N/A Decimal 0 N/A N/A InvalidOperation N/A N/A N/A N/A log debug Bad upsell qty=%d rawqty N/A qty N/A Decimal 0 N/A N/A qty 0 N/A product.models Product N/A N/A N/A product N/A N/A N/A Product objects get_by_site slug slug N/A N/A N/A N/A N/A cart add_item product number_added qty N/A N/A N/A log info Added upsell item: %s qty=%d N/A product slug qty N/A N/A True product N/A N/A N/A CartAddProhibited N/A cap N/A N/A vetomsg N/A N/A cap veto_messages N/A msg N/A N/A _ '%(product)s' couldn't be added to the cart. %(details)s N/A product detail N/A product slug N/A cap message N/A N/A N/A log debug Failed to add upsell item: '%s', message= %s N/A product slug msg N/A N/A False product N/A N/A N/A N/A Product DoesNotExist N/A N/A N/A N/A log debug Could not find product: %s slug N/A N/A False None N/A N/A False None N/A