Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore BinOpDiv NameLoad Num Assign NameStore BinOpMult NameLoad BinOpSub Num NameLoad Assign NameStore Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot CompareIn Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore TupleLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr BinOpBitOr Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Return SubscriptLoad NameLoad Index Num orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore BoolOpAnd NameLoad CompareGt AttributeLoad NameLoad attr Num If NameLoad body ImportFrom alias Assign NameStore Call NameLoad keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Str If CompareEq Call AttributeLoad NameLoad attr Num body If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Str orelse Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Dict Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str orelse If NameLoad body Assign NameStore Call NameLoad Str orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Dict If NameLoad body Assign SubscriptStore NameLoad Index Str Dict If NameLoad body Assign SubscriptStore NameLoad Index Str Dict If NameLoad body Assign SubscriptStore NameLoad Index Str Dict Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Call NameLoad NameLoad If NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr If NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Call NameLoad NameLoad If NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd NameStore Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults TupleLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad If CompareNotEq NameLoad ListLoad ListLoad body Assign NameStore Dict Assign NameStore Dict Assign NameStore Dict Assign NameStore Dict For NameStore NameLoad body For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad If UnaryOpNot CompareIn NameLoad SubscriptLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Index Str body AugAssignAdd SubscriptStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Index Str ListLoad NameLoad Assign AttributeStore NameLoad attr CompareIn AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call NameLoad NameLoad Index Num For NameStore NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp TupleLoad AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Return SubscriptLoad Call NameLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareGt Call NameLoad NameLoad Num body Return TupleLoad NameLoad NameLoad orelse Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad handlers ExceptHandler body Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIn Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str body Return TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad handlers ExceptHandler body Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Raise NameLoad Return NameLoad orelse Assign NameStore Call NameLoad NameLoad Call NameLoad Call NameLoad ListLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list
N/A decimal Decimal django.contrib.sites.models Site django.db.models Q livesettings config_value l10n.utils moneyfmt product.models Option ProductPriceLookup OptionGroup Discount Product split_option_unique_id satchmo_utils.numbers round_decimal N/A datetime N/A logging N/A types N/A string N/A log N/A N/A logging getLogger product.utils calc_discounted_by_percentage N/A N/A price percentage N/A N/A N/A N/A percentage N/A N/A price N/A N/A percentage 1 N/A N/A N/A N/A log warn Correcting discount percentage, should be less than 1, is %s percentage N/A percentage N/A percentage 100 N/A work N/A price N/A 1 percentage N/A cents N/A Decimal 0.01 N/A N/A N/A work quantize cents N/A find_auto_discounts N/A N/A product N/A N/A N/A N/A N/A N/A type product N/A N/A types ListType N/A types TupleType N/A N/A product N/A product N/A today N/A N/A N/A datetime date today N/A discs N/A N/A N/A Discount objects filter automatic True active True startDate__lte today endDate__gt today N/A N/A N/A N/A N/A discs filter N/A N/A Q valid_products__in product N/A Q allValid True order_by -percentage N/A find_best_auto_discount N/A N/A product N/A N/A N/A discs N/A find_auto_discounts product N/A N/A N/A len discs 0 N/A N/A N/A discs N/A 0 N/A N/A None N/A productvariation_details N/A N/A product include_tax user create N/A False N/A N/A Build the product variation details, for conversion to javascript.

    Returns variation detail dictionary built like so:
    details = {
        "OPTION_KEY" : {
            "SLUG": "Variation Slug",
            "PRICE" : {"qty" : "$price", [...]},
            "SALE" : {"qty" : "$price", [...]},
            "TAXED" : "$taxed price",   # omitted if no taxed price requested
            "QTY" : 1
        },
        [...]
    }
     N/A ignore_stock N/A config_value PRODUCT NO_STOCK_CHECKOUT N/A discount N/A find_best_auto_discount product N/A use_discount N/A discount N/A N/A discount percentage 0 N/A include_tax N/A tax.utils get_tax_processor N/A taxer N/A get_tax_processor user user N/A tax_class N/A product taxClass N/A details N/A SALE use_discount N/A variations N/A N/A N/A N/A N/A ProductPriceLookup objects filter parentid N/A product id order_by -price N/A N/A N/A N/A variations count 0 N/A N/A create N/A N/A N/A N/A log debug Creating price lookup for %s product N/A N/A N/A N/A ProductPriceLookup objects smart_create_for_product product N/A variations N/A N/A N/A N/A N/A ProductPriceLookup objects filter parentid N/A product id order_by -price N/A N/A N/A N/A log warning You must run satchmo_rebuild_pricing and add it to a cron-job to run every day, or else the product details will not work for product detail pages. N/A detl variations N/A N/A key N/A detl key N/A N/A N/A details has_key key N/A N/A detail N/A details N/A key N/A qty N/A detl quantity N/A N/A detail N/A N/A N/A detail N/A SLUG N/A detl productslug N/A N/A N/A detl active N/A N/A qty N/A round_decimal -1.0 N/A N/A ignore_stock N/A N/A qty N/A round_decimal 10000.0 N/A N/A qty N/A round_decimal N/A detl items_in_stock N/A N/A detail N/A QTY N/A round_decimal qty N/A N/A detail N/A PRICE N/A N/A use_discount N/A N/A N/A detail N/A SALE N/A N/A include_tax N/A N/A N/A detail N/A TAXED N/A N/A use_discount N/A N/A N/A detail N/A TAXED_SALE N/A N/A N/A details N/A key detail N/A qtykey N/A %d N/A detl quantity N/A price N/A detl dynamic_price N/A N/A N/A detail N/A PRICE N/A qtykey N/A moneyfmt price N/A use_discount N/A N/A N/A N/A detail N/A SALE N/A qtykey N/A moneyfmt N/A calc_discounted_by_percentage price N/A discount percentage N/A include_tax N/A N/A tax_price N/A N/A N/A taxer by_price tax_class price price N/A N/A N/A detail N/A TAXED N/A qtykey N/A moneyfmt tax_price N/A use_discount N/A N/A N/A N/A detail N/A TAXED_SALE N/A qtykey N/A moneyfmt N/A calc_discounted_by_percentage tax_price N/A discount percentage N/A details N/A rebuild_pricing N/A N/A N/A N/A N/A site N/A N/A N/A Site objects get_current N/A lookup N/A N/A N/A ProductPriceLookup objects filter siteid N/A site id N/A N/A N/A N/A lookup delete N/A products N/A N/A N/A Product objects active_by_site site site variations False N/A productct N/A N/A products count N/A pricect 0 N/A product products N/A N/A prices N/A N/A N/A ProductPriceLookup objects smart_create_for_product product N/A pricect N/A len prices N/A N/A productct pricect N/A serialize_options N/A N/A product selected_options N/A N/A N/A N/A 
    Return a list of optiongroups and options for display to the customer.
    Only returns options that are actually used by members of this product.

    Return Value:
    [
    {
    name: 'group name',
    id: 'group id',
    items: [{
        name: 'opt name',
        value: 'opt value',
        price_change: 'opt price',
        selected: False,
        },{..}]
    },
    {..}
    ]

    Note: This doesn't handle the case where you have multiple options and
    some combinations aren't available. For example, you have option_groups
    color and size, and you have a yellow/large, a yellow/small, and a
    white/small, but you have no white/large - the customer will still see
    the options white and large.
     N/A all_options N/A N/A product get_valid_options N/A group_sortmap N/A N/A N/A OptionGroup objects get_sortmap N/A values N/A N/A N/A all_options N/A N/A N/A N/A vals N/A N/A groups N/A N/A opts N/A N/A serialized N/A N/A options all_options N/A N/A option options N/A N/A N/A N/A N/A opts has_key option N/A N/A N/A k v N/A split_option_unique_id option N/A N/A vals N/A v False N/A N/A groups N/A k False N/A N/A opts N/A option None N/A option N/A N/A N/A Option objects filter option_group__id__in N/A N/A groups keys value__in N/A N/A vals keys N/A N/A uid N/A option unique_id N/A N/A N/A opts has_key uid N/A N/A N/A opts N/A uid option N/A option N/A N/A opts values N/A N/A N/A N/A N/A serialized has_key N/A option option_group_id N/A N/A N/A serialized N/A N/A N/A option option_group id N/A name description id items N/A N/A N/A option option_group translated_name N/A N/A N/A option option_group translated_description N/A N/A option option_group id N/A N/A N/A N/A option N/A N/A serialized N/A N/A option option_group_id N/A items N/A N/A N/A N/A serialized N/A N/A option option_group_id N/A items N/A option N/A N/A option selected N/A N/A option unique_id selected_options N/A N/A k v N/A N/A serialized items N/A N/A N/A N/A values append N/A N/A group_sortmap N/A k v N/A values N/A N/A N/A N/A values sort N/A values N/A N/A zip values N/A 1 N/A v values N/A N/A N/A v N/A items N/A _sort_options N/A v N/A items N/A N/A N/A log debug serialized: %s values N/A N/A N/A log debug Serialized Options %s: %s N/A N/A product product slug values N/A values N/A _sort_options N/A N/A lst N/A N/A N/A work N/A N/A N/A opt sort_order opt N/A opt lst N/A N/A N/A work sort N/A N/A N/A zip work N/A 1 N/A validation_simple N/A N/A value obj N/A None N/A N/A 
    Validates that at least one character has been entered.
    Not change is made to the value.
     N/A N/A N/A len value 1 N/A N/A N/A True value N/A N/A N/A False value N/A validation_integer N/A N/A value obj N/A None N/A N/A 
   Validates that value is an integer number.
   No change is made to the value
     N/A N/A N/A check N/A int value N/A N/A True value N/A N/A N/A N/A N/A False value N/A validation_yesno N/A N/A value obj N/A None N/A N/A 
    Validates that yes or no is entered.
    Converts the yes or no to capitalized version
     N/A N/A N/A N/A string upper value N/A YES NO N/A N/A N/A True N/A N/A string capitalize value N/A N/A N/A False value N/A validation_decimal N/A N/A value obj N/A None N/A N/A 
    Validates that the number can be converted to a decimal
     N/A N/A N/A check N/A Decimal value N/A N/A True value N/A N/A N/A N/A N/A False value N/A import_validator N/A N/A validator N/A N/A N/A N/A N/A N/A import_name function_name N/A N/A validator rsplit . 1 N/A N/A N/A ValueError N/A N/A func N/A N/A N/A globals get validator None N/A N/A func N/A N/A ImportError N/A validator N/A N/A import_module N/A __import__ import_name N/A globals N/A locals N/A function_name N/A N/A getattr import_module function_name N/A validate_attribute_value N/A N/A attribute value obj N/A N/A N/A 
    Helper function for forms that wish to validation a value for an
    AttributeOption.
     N/A N/A N/A import_validator N/A attribute validation value obj N/A