Instead of "sender=None", use "sender="PayShipForm"
On Sat, Dec 13, 2008 at 11:34 PM, joshm <[email protected]> wrote: > > Could someone give me a run down on how to use this? > > I'm not super familiar with signals so bare with me. > > I added this to my apps __init.py__ : > > from satchmo.payment.signals import payment_form_init > from satchmo.payment.listeners import shipping_hide_if_one > > payment_form_init.connect(shipping_hide_if_one, sender=None) > > This works for the base_pay_ship.html but it causes an error on all > the other checkout forms... > > How do I setup the listener so that it only hides this for the the > base_pay_ship.html template ? > > (we only have one flat rate shipping charge currently) > > > -- Bruce Kroeze http://solidsitesolutions.com Dynamic Designs, Optimized --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
