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()
I've tried to load the in_ function by
>>> from sqlalchemy import in_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name in_
>>> from sqlalchemy.sql import in_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name in_
>>> from sqlalchemy.sql.expression import in_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name in_
Any hints ?
vbr
Matt
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---