problem on the view side is that the function setting the cookies
doesn't just deal with strings or ints. If I get into customizing for
each item I sent in, it defeats the purpose.

I wrote a custom filter that would change the values to ints, and it
works - but it will not work inside the {% ifequal %}.

Just to give you an idea of what is happening in the view and why I
don't want to mess with it there, here is a chunk of code (from
views.py):

        filters = {
                'srch_txt': 'title__icontains',
                'pfilter': 'project__exact',
                'abugs': 'resolution__isnull',
        }
        filter_fields = filters.keys()
        clear_srch = 0

        if request.POST.keys():
                srch_fields = request.POST.keys()
                for p in range(len(srch_fields)):
                        if srch_fields[p] == 'clear_srch':
                                clear_srch = 1
                                break
                        for f in range(len(filter_fields)):
                                if srch_fields[p] == filter_fields[f]:
                                        request.session[filter_fields[f]] = 
request.POST[filter_fields[f]]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django 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/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to