Ejemplo n.º 1
0
def pending_order_list():
    """Returns a formatted list of pending orders"""
    pending = unicode(ORDER_STATUS[1][0])
    orders = orders_at_status(pending)
    
    return {
        'orders' : orders,
        'multihost' : is_multihost_enabled()
    }
Ejemplo n.º 2
0
def inprocess_order_list():
    """Returns a formatted list of in-process orders"""
    inprocess = unicode(ORDER_STATUS[2][0])
    orders = orders_at_status(inprocess)
    
    return {
        'orders' : orders,
        'multihost' : is_multihost_enabled()
    }
def multishop_pending_order_list(user):
	"""Returns a formatted list of pending orders"""
	pending = unicode(ORDER_STATUS[1][0])
	site = user.get_profile().site
	orders = orders_at_status(pending, site)

	return {
		'orders' : orders,
		'multihost' : is_multihost_enabled()
	}
def multishop_inprocess_order_list(user):
	"""Returns a formatted list of in-process orders"""
	inprocess = unicode(ORDER_STATUS[2][0])
	site = user.get_profile().site
	orders = orders_at_status(inprocess, site)

	return {
		'orders' : orders,
		'multihost' : is_multihost_enabled()
	}
def pending_order_list():
    """Returns a formatted list of pending orders"""
    pending = six.text_type(ORDER_STATUS[1][0])
    orders = orders_at_status(pending)

    return {'orders': orders, 'multihost': is_multihost_enabled()}
def inprocess_order_list():
    """Returns a formatted list of in-process orders"""
    inprocess = six.text_type(ORDER_STATUS[2][0])
    orders = orders_at_status(inprocess)

    return {'orders': orders, 'multihost': is_multihost_enabled()}