With tests, some settings changes (all should default to not breaking anything for edx) Added styling for shopping cart User Experience - Styled shoppingcart list page - Styled navigation shopping cart button - Styled receipt page - Styled course about page for shopping cart courses Addressed HTML/SCSS issues Remove offending body class and unnecessary sass changes Addresses many review comments on stanford shopping cart * framework for generating order instructions on receipt page in shoppingcart.models * move user_cart_has_item into shoppingcart.models * move min_course_price_for_currency into course_modes.models * remove auto activation on purchase * 2-space indents in templates * etc revert indentation on navigation.html for ease of review pep8 pylint move logging/error handling from shoppingcart view to model Addressing @dave changes
29 lines
511 B
Python
29 lines
511 B
Python
"""
|
|
Exceptions for the shoppingcart app
|
|
"""
|
|
# (Exception Class Names are sort of self-explanatory, so skipping docstring requirement)
|
|
# pylint: disable=C0111
|
|
|
|
class PaymentException(Exception):
|
|
pass
|
|
|
|
|
|
class PurchasedCallbackException(PaymentException):
|
|
pass
|
|
|
|
|
|
class InvalidCartItem(PaymentException):
|
|
pass
|
|
|
|
|
|
class ItemAlreadyInCartException(InvalidCartItem):
|
|
pass
|
|
|
|
|
|
class AlreadyEnrolledInCourseException(InvalidCartItem):
|
|
pass
|
|
|
|
|
|
class CourseDoesNotExistException(InvalidCartItem):
|
|
pass
|