Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/d/j/django-lfs-HEAD/lfs/mail/listeners.py   django-lfs(Download)
 
    if getattr(settings, 'LFS_SEND_ORDER_MAIL_ON_CHECKOUT', True):
        mail_utils.send_order_received_mail(request, order)
order_submitted.connect(order_submitted_listener)
 

src/d/j/django-lfs-0.7.7/lfs/mail/listeners.py   django-lfs(Download)
    order = sender.get("order")
    if getattr(settings, 'LFS_SEND_ORDER_MAIL_ON_CHECKOUT', True):
        mail_utils.send_order_received_mail(order)
order_submitted.connect(order_submitted_listener)
 

src/l/f/lfs-HEAD/mail/listeners.py   lfs(Download)
def order_submitted_listener(sender, **kwargs):
    """Listen to order submitted signal
    """
    mail_utils.send_order_received_mail(sender)
order_submitted.connect(order_submitted_listener)

src/d/j/django-lfs-0.7.7/lfs/manage/views/orders.py   django-lfs(Download)
def send_order(request, order_id):
    """Sends order with passed order id to the customer of this order.
    """
    order = lfs_get_object_or_404(Order, pk=order_id)
    mail_utils.send_order_received_mail(order)

src/d/j/django-lfs-HEAD/lfs/manage/views/orders.py   django-lfs(Download)
def send_order(request, order_id):
    """Sends order with passed order id to the customer of this order.
    """
    order = lfs_get_object_or_404(Order, pk=order_id)
    mail_utils.send_order_received_mail(order)

src/d/j/django-lfs-0.7.7/lfs/payment/listeners.py   django-lfs(Download)
                # TODO: Why is here an order received mail sent?
                if getattr(settings, 'LFS_SEND_ORDER_MAIL_ON_PAYMENT', False):
                    mail_utils.send_order_received_mail(order)
            order.state = order_state
            order.save()

src/l/f/lfs-HEAD/manage/views/orders.py   lfs(Download)
def send_order(request, order_id):
    """Sends order with passed order id to the customer of this order.
    """
    order = lfs_get_object_or_404(Order, pk=order_id)
    mail_utils.send_order_received_mail(order)

src/l/f/lfs-moip-1.0/lfs_moip/listeners.py   lfs-moip(Download)
                lfs.core.signals.order_paid.send({"order": order})
                if getattr(settings, 'LFS_SEND_ORDER_MAIL_ON_PAYMENT', False):
                    mail_utils.send_order_received_mail(order)
    except Order.DoesNotExist, e:
        logger.error("MoIP: %s" % e)