Re: Dynamic DB API Lookups

2006-03-13 Thread tomass
Nevermind - problems solved It was: lookup_variables = { 'timestamp__year' : d.year, 'timestamp__month' : d.month, 'timestamp__day' : d.day, } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Dynamic DB API Lookups

2006-03-13 Thread tomass
Thanks, Russ. Apologies for posting on the wrong list. I'll post a thread there instead, as I'm having some problems with implementing this. Thanks, Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django deve

Re: Dynamic DB API Lookups

2006-03-12 Thread Russell Keith-Magee
On 3/13/06, tomass <[EMAIL PROTECTED]> wrote: Which is clunky but works okay, but what about if I have three other ifstatements for other variables? Do I nest those in, or is there someway to create a list or dictionary that holds all my lookup variables (let's call it lookup_variables) and then I

Dynamic DB API Lookups

2006-03-12 Thread tomass
Hi Folks, Is it possible to have dynamic db api lookups? In other words, I want to be able to generate a get_list statement conditionally based on some user options. For example: Here's what I'm currently doing: if status: object_list = logs.get_list( times