example from satchmo source:

def capture_on_ship_listener(sender, oldstatus="", newstatus="",
order=None, **kwargs):
    """Listen for a transition to 'shipped', and capture authorizations."""

    log.debug('heard satchmo_order_status_changed, %s=%s', oldstatus,
newstatus)
   if oldstatus != 'Shipped' and newstatus == 'Shipped':
        capture_authorizations(order)

signals.satchmo_order_status_changed.connect(capture_on_ship_listener)

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to