Module ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Expr Call Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return ListLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Expr Call Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return ListLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore BinOpMod Call NameLoad Str Dict Str Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str Return Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Str keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Call NameLoad Str body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Dict Dict If NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd UnaryOpNot Call AttributeLoad SubscriptLoad NameLoad Index Str attr CompareNotIn Str SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Return Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad orelse Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr body If NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Return Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad orelse Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Return Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A decimal Decimal D django http django.contrib messages django.core.exceptions ImproperlyConfigured django.core.urlresolvers reverse django.utils.translation ugettext_lazy _ oscar.core prices oscar.core.loading get_class get_model N/A exceptions N/A Repository N/A get_class shipping.repository Repository N/A OrderTotalCalculator N/A get_class checkout.calculators OrderTotalCalculator N/A CheckoutSessionData N/A get_class checkout.utils CheckoutSessionData N/A ShippingAddress N/A get_model order ShippingAddress N/A BillingAddress N/A get_model order BillingAddress N/A UserAddress N/A get_model address UserAddress CheckoutSessionMixin N/A object N/A N/A 
    Mixin to provide common functionality shared between checkout views.

    All checkout views subclass this mixin. It ensures that all relevant
    checkout information is available in the template context.
     N/A pre_conditions None N/A skip_conditions None dispatch N/A N/A self request N/A args kwargs N/A N/A N/A self checkout_session N/A CheckoutSessionData request N/A N/A N/A N/A N/A self check_pre_conditions request N/A N/A N/A N/A exceptions FailedPreCondition N/A e N/A N/A message N/A e messages N/A N/A N/A N/A messages warning request message N/A N/A N/A http HttpResponseRedirect N/A e url N/A N/A N/A N/A N/A self check_skip_conditions request N/A N/A N/A N/A exceptions PassedSkipCondition N/A e N/A N/A N/A N/A http HttpResponseRedirect N/A e url N/A N/A N/A N/A super CheckoutSessionMixin self dispatch request args kwargs N/A check_pre_conditions N/A N/A self request N/A N/A N/A pre_conditions N/A N/A self get_pre_conditions request N/A method_name pre_conditions N/A N/A N/A N/A hasattr self method_name N/A N/A N/A ImproperlyConfigured N/A There is no method '%s' to call as a pre-condition method_name N/A N/A N/A getattr self method_name request N/A get_pre_conditions N/A N/A self request N/A N/A N/A 
        Return the pre-condition method names to run for this view
         N/A N/A N/A self pre_conditions None N/A N/A N/A N/A N/A self pre_conditions N/A check_skip_conditions N/A N/A self request N/A N/A N/A skip_conditions N/A N/A self get_skip_conditions request N/A method_name skip_conditions N/A N/A N/A N/A hasattr self method_name N/A N/A N/A ImproperlyConfigured N/A There is no method '%s' to call as a skip-condition method_name N/A N/A N/A getattr self method_name request N/A get_skip_conditions N/A N/A self request N/A N/A N/A 
        Return the skip-condition method names to run for this view
         N/A N/A N/A self skip_conditions None N/A N/A N/A N/A N/A self skip_conditions N/A check_basket_is_not_empty N/A N/A self request N/A N/A N/A N/A N/A request basket is_empty N/A N/A N/A N/A exceptions FailedPreCondition url N/A reverse basket:summary message N/A _ You need to add some items to your basket to checkout N/A check_basket_is_valid N/A N/A self request N/A N/A N/A 
        Check that the basket is permitted to be submitted as an order. That
        is, all the basket lines are available to buy - nothing has gone out of
        stock since it was added to the basket.
         N/A messages N/A N/A strategy N/A request strategy N/A line N/A N/A N/A request basket all_lines N/A N/A result N/A N/A strategy fetch_for_line line N/A N/A is_permitted reason N/A N/A N/A result availability is_purchase_permitted N/A line quantity N/A N/A is_permitted N/A N/A msg N/A N/A _ '%(title)s' is no longer available to buy (%(reason)s). Please adjust your basket to continue N/A title reason N/A N/A N/A line product get_title reason N/A N/A N/A messages append msg N/A messages N/A N/A N/A N/A exceptions FailedPreCondition url N/A reverse basket:summary messages messages N/A check_user_email_is_captured N/A N/A self request N/A N/A N/A N/A N/A N/A N/A N/A request user is_authenticated N/A N/A N/A N/A self checkout_session get_guest_email N/A N/A N/A N/A exceptions FailedPreCondition url N/A reverse checkout:index message N/A _ Please either sign in or enter your email address N/A check_shipping_data_is_captured N/A N/A self request N/A N/A N/A N/A N/A N/A N/A request basket is_shipping_required N/A N/A N/A N/A N/A N/A self checkout_session is_shipping_method_set N/A N/A self request basket N/A N/A N/A N/A exceptions FailedPreCondition url N/A reverse checkout:shipping-method N/A N/A N/A N/A self check_a_valid_shipping_address_is_captured N/A N/A N/A self check_a_valid_shipping_method_is_captured N/A check_a_valid_shipping_address_is_captured N/A N/A self N/A N/A N/A N/A N/A N/A N/A self checkout_session is_shipping_address_set N/A N/A N/A N/A exceptions FailedPreCondition url N/A reverse checkout:shipping-address message N/A _ Please choose a shipping address N/A shipping_address N/A N/A self get_shipping_address basket N/A N/A self request basket N/A N/A shipping_address N/A N/A N/A N/A exceptions FailedPreCondition url N/A reverse checkout:shipping-address message N/A _ Your previously chosen shipping address is no longer valid.  Please choose another one N/A check_a_valid_shipping_method_is_captured N/A N/A self N/A N/A N/A N/A N/A N/A N/A self checkout_session is_shipping_method_set N/A N/A self request basket N/A N/A N/A N/A exceptions FailedPreCondition url N/A reverse checkout:shipping-method message N/A _ Please choose a shipping method N/A shipping_address N/A N/A self get_shipping_address basket N/A N/A self request basket N/A shipping_method N/A N/A self get_shipping_method basket N/A N/A self request basket shipping_address shipping_address N/A N/A shipping_method N/A N/A N/A N/A exceptions FailedPreCondition url N/A reverse checkout:shipping-method message N/A _ Your previously chosen shipping method is no longer valid.  Please choose another one N/A check_payment_data_is_captured N/A N/A self request N/A N/A N/A N/A skip_unless_basket_requires_shipping N/A N/A self request N/A N/A N/A N/A N/A N/A N/A request basket is_shipping_required N/A N/A N/A N/A exceptions PassedSkipCondition url N/A reverse checkout:shipping-method N/A skip_unless_payment_is_required N/A N/A self request N/A N/A N/A shipping_address N/A N/A self get_shipping_address N/A request basket N/A shipping_method N/A N/A self get_shipping_method N/A request basket shipping_address N/A shipping_method N/A N/A shipping_charge N/A N/A shipping_method calculate N/A request basket N/A N/A shipping_charge N/A N/A prices Price currency N/A N/A request basket currency excl_tax N/A D 0.00 tax N/A D 0.00 N/A total N/A N/A self get_order_totals N/A request basket shipping_charge N/A N/A N/A total excl_tax N/A D 0.00 N/A N/A N/A N/A exceptions PassedSkipCondition url N/A reverse checkout:preview N/A get_context_data N/A N/A self N/A kwargs N/A N/A ctx N/A N/A N/A super CheckoutSessionMixin self get_context_data N/A N/A N/A ctx update N/A N/A self build_submission kwargs N/A N/A N/A ctx update kwargs N/A N/A N/A ctx update N/A ctx N/A order_kwargs N/A ctx N/A build_submission N/A N/A self N/A kwargs N/A N/A 
        Return a dict of data that contains everything required for an order
        submission.  This includes payment details (if any).

        This can be the right place to perform tax lookups and apply them to
        the basket.
         N/A basket N/A N/A kwargs get basket N/A N/A self request basket N/A shipping_address N/A N/A self get_shipping_address basket N/A shipping_method N/A N/A self get_shipping_method basket shipping_address N/A billing_address N/A N/A self get_billing_address shipping_address N/A N/A shipping_method N/A N/A total shipping_charge None N/A N/A shipping_charge N/A N/A shipping_method calculate basket N/A total N/A N/A self get_order_totals basket shipping_charge shipping_charge N/A submission N/A user basket shipping_address shipping_method shipping_charge billing_address order_total order_kwargs payment_kwargs N/A N/A self request user basket shipping_address shipping_method shipping_charge billing_address total N/A N/A N/A billing_address N/A N/A N/A N/A submission N/A payment_kwargs N/A billing_address billing_address N/A N/A N/A submission update kwargs N/A N/A N/A N/A N/A N/A submission N/A user is_authenticated N/A guest_email N/A submission N/A order_kwargs N/A N/A email N/A N/A N/A self checkout_session get_guest_email N/A N/A N/A submission N/A order_kwargs N/A guest_email email N/A submission N/A get_shipping_address N/A N/A self basket N/A N/A N/A 
        Return the (unsaved) shipping address for this checkout session.

        If the shipping address was entered manually, then we instantiate a
        ``ShippingAddress`` model with the appropriate form data (which is
        saved in the session).

        If the shipping address was selected from the user's address book,
        then we convert the ``UserAddress`` to a ``ShippingAddress``.

        The ``ShippingAddress`` instance is not saved as sometimes you need a
        shipping address instance before the order is placed.  For example, if
        you are submitting fraud information as part of a payment request.

        The ``OrderPlacementMixin.create_shipping_address`` method is
        responsible for saving a shipping address when an order is placed.
         N/A N/A N/A N/A basket is_shipping_required N/A N/A None N/A addr_data N/A N/A N/A self checkout_session new_shipping_address_fields N/A addr_data N/A N/A N/A ShippingAddress addr_data N/A addr_id N/A N/A N/A self checkout_session shipping_user_address_id N/A addr_id N/A N/A N/A N/A address N/A N/A N/A UserAddress _default_manager get pk addr_id N/A N/A N/A N/A UserAddress DoesNotExist N/A N/A None N/A N/A shipping_addr N/A ShippingAddress N/A N/A N/A address populate_alternative_model shipping_addr N/A shipping_addr N/A get_shipping_method N/A N/A self basket shipping_address N/A None kwargs N/A N/A 
        Return the selected shipping method instance from this checkout session

        The shipping address is passed as we need to check that the method
        stored in the session is still valid for the shipping address.
         N/A code N/A N/A N/A self checkout_session shipping_method_code basket N/A methods N/A N/A N/A Repository get_shipping_methods basket basket user N/A N/A self request user shipping_addr shipping_address request N/A self request N/A method methods N/A N/A N/A N/A method code code N/A N/A method N/A get_billing_address N/A N/A self shipping_address N/A N/A N/A 
        Return an unsaved instance of the billing address (if one exists)

        This method only returns a billing address if the session has been used
        to store billing address information. It's also possible to capture
        billing address information as part of the payment details forms, which
        never get stored in the session. In that circumstance, the billing
        address can be set directly in the build_submission dict.
         N/A N/A N/A N/A N/A self checkout_session is_billing_address_set N/A N/A None N/A N/A N/A N/A self checkout_session is_billing_address_same_as_shipping N/A N/A shipping_address N/A N/A address N/A BillingAddress N/A N/A N/A shipping_address populate_alternative_model address N/A address N/A addr_data N/A N/A N/A self checkout_session new_billing_address_fields N/A addr_data N/A N/A N/A BillingAddress addr_data N/A addr_id N/A N/A N/A self checkout_session billing_user_address_id N/A addr_id N/A N/A N/A N/A user_address N/A N/A N/A UserAddress _default_manager get pk addr_id N/A N/A N/A N/A UserAddress DoesNotExist N/A N/A None N/A N/A billing_address N/A BillingAddress N/A N/A N/A user_address populate_alternative_model billing_address N/A billing_address N/A get_order_totals N/A N/A self basket shipping_charge N/A kwargs N/A N/A 
        Returns the total for the order with and without tax
         N/A N/A N/A N/A OrderTotalCalculator N/A self request calculate basket shipping_charge kwargs N/A N/A