since my server is down again, i can´t verify the code.
anyway, thanks everybody for your help.

patrick


Am 17.01.2006 um 16:19 schrieb Adrian Holovaty:


On 1/17/06, scum <[EMAIL PROTECTED]> wrote:
Okay- that is a lot trickier. Here's some yucky code that uses the exec
command to accomplish the same goal... but it's definitely not the
elegant solution you are looking for...

        q = []
        for key, value in request.GET.items():
                q.append ( "%s = %s" % (key, value) )
        q = ", ".join(q)
        print q
        cmd = "milestones_list = milestones.get_values(%s)" % q
        exec cmd

UGH! Do *not* use that code.

    params = dict(request.GET.items())
    milestones.get_values(**params)

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org


Reply via email to