Did I find the right examples for you? yes no

All Samples(30)  |  Call(3)  |  Derive(0)  |  Import(27)

src/d/j/django-lfs-0.7.7/lfs/cart/utils.py   django-lfs(Download)
# lfs imports
from lfs.cart.models import CartItem
from lfs.cart.models import Cart
from lfs.payment import utils as payment_utils
from lfs.shipping import utils as shipping_utils
def create_cart(request):
    """
    Creates a cart for the current session and/or user.
    """
    cart = Cart(session=request.session.session_key)

src/l/f/lfs-HEAD/cart/utils.py   lfs(Download)
# lfs imports
from lfs.cart.models import CartItem
from lfs.cart.models import Cart
from lfs.payment import utils as payment_utils
from lfs.shipping import utils as shipping_utils
def create_cart(request):
    """Creates a cart for the current session and/or user.
    """
    cart = Cart(session = request.session.session_key)
    if request.user.is_authenticated():

src/d/j/django-lfs-HEAD/lfs/cart/utils.py   django-lfs(Download)
 
# lfs imports
from lfs.cart.models import Cart
 
# Load logger
        request.session.save()
 
    cart = Cart(session=request.session.session_key)
    if request.user.is_authenticated():
        cart.user = request.user

src/d/j/django-lfs-HEAD/lfs/customer/management/commands/cleanup_customers.py   django-lfs(Download)
    def handle(self, *args, **options):
        from lfs.customer.models import Customer
        from lfs.order.models import Order
        from lfs.cart.models import Cart
        cnt = 0

src/d/j/django-lfs-HEAD/lfs/cart/management/commands/cleanup_carts.py   django-lfs(Download)
    def handle(self, *args, **options):
        """
        """
        from lfs.cart.models import Cart
        days = int(options['days'])

src/d/j/django-lfs-0.7.7/lfs/manage/views/customer.py   django-lfs(Download)
import lfs.core.utils
from lfs.caching.utils import lfs_get_object_or_404
from lfs.cart.models import Cart
from lfs.core.utils import LazyEncoder
from lfs.customer.models import Customer

src/d/j/django-lfs-0.7.7/lfs/manage/views/carts.py   django-lfs(Download)
import lfs.core.utils
from lfs.caching.utils import lfs_get_object_or_404
from lfs.cart.models import Cart
from lfs.core.utils import LazyEncoder
from lfs.customer.models import Customer

src/d/j/django-lfs-HEAD/lfs/manage/views/customer.py   django-lfs(Download)
import lfs.core.utils
from lfs.caching.utils import lfs_get_object_or_404
from lfs.cart.models import Cart
from lfs.core.utils import LazyEncoder
from lfs.customer.models import Customer

src/d/j/django-lfs-HEAD/lfs/manage/views/carts.py   django-lfs(Download)
import lfs.core.utils
from lfs.caching.utils import lfs_get_object_or_404
from lfs.cart.models import Cart
from lfs.core.utils import LazyEncoder
from lfs.customer.models import Customer

src/d/j/django-lfs-0.7.7/lfs/caching/listeners.py   django-lfs(Download)
# lfs imports
from lfs.caching.utils import clear_cache
from lfs.cart.models import Cart
from lfs.catalog.models import Category
from lfs.catalog.models import Product

  1 | 2 | 3  Next