Hi Svil: > use keywordargs as dictionary, i.e. >...query.filter( **kwargs) > where the kwargs are a dict made by u containing only the required > fields. e.g. > > kwargs={} > if foo_id: kwargs['fooid']=fooid
That sounds like a fair enough solution to me, seems safer than the more generic version. Thanks for the tip mate, sounds really great. I'll play around with that concept. Heston --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---