Previously mmblnfrn wrote: > > Hi, > > I've problems to write a filter function: > > user_q = meta.Session.query(model.BPUser) > user = user_q.filter(and_(model.BPUser.name=='%s' % username, \ > model.BPUser.state.in_([0,1]))).first()
in_ is a method on the column instance, there is no need to import it. Wichert. -- Wichert Akkerman <[email protected]> It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
