Coverage for /home/tribaal/workspace/django-shop/shop/util/order : 100.00%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
#-*- coding: utf-8 -*-
""" Returns the currently processing Order from a request (switches between user or session mode) if any. """ # There is a logged in user else: # There is a logged in user but he has no pending order else: # There is a session
""" Checks that the order is linked to the current user or adds the order to the session should there be no logged in user. """ # We should check that the current user is indeed the request's user. else: # Add the order_id to the session There has to be a session. Otherwise # it's fine to get an AttributeError |