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

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
Listens for cart_add_view signal and checks to see if it is a wishlist add request.
If so, returns the wishlist add view method.

        def wishlist_cart_add_listener(sender, request=None, method={}, **kwargs):
    """Listens for cart_add_view signal and checks to see if it is a wishlist add request.
    If so, returns the wishlist add view method.
    """

    if request and request.method == "POST":
        if request.POST.get('addwish', '') != '' or request.POST.get('addwish.x', '') != '':
            log.debug("Found addwish in post, returning the wishlist add view")
            from satchmo_ext.wishlist.views import wishlist_add
            method['view'] = wishlist_add
        


src/d/j/django-hotsauce-0.5.0/examples/lib/satchmo_ext/wishlist/models.py   Django-hotsauce(Download)
    import simplejson
from django.utils.translation import ugettext_lazy as _
from listeners import wishlist_cart_add_listener
from satchmo_store import shop
from satchmo_store.contact.models import Contact

src/s/a/Satchmo-0.9.2/satchmo/apps/satchmo_ext/wishlist/models.py   Satchmo(Download)
    import simplejson
from django.utils.translation import ugettext_lazy as _
from listeners import wishlist_cart_add_listener
from satchmo_store import shop
from satchmo_store.contact.models import Contact

src/s/a/satchmo-HEAD/satchmo/apps/satchmo_ext/wishlist/models.py   satchmo(Download)
    import simplejson
from django.utils.translation import ugettext_lazy as _
from listeners import wishlist_cart_add_listener
from satchmo_store import shop
from satchmo_store.contact.models import Contact