Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Write out a log message for each update signal sent. 

        def payment_update_logger(sender, **kwargs):
    """ Write out a log message for each update signal sent. """

    logger.debug(
        'Payment status update for transaction %s: paid=%s, closed=%s',
        sender.transaction_id, sender.paid, sender.closed
    )
        


src/d/j/django-docdata-0.2/docdata/models.py   django-docdata(Download)
 
# Connect listener to signal
from listeners import payment_update_logger
payment_status_changed.connect(payment_update_logger)