For our app we'd like the user to construct and save search queries
that we execute on the database. My first thought was to construct
something like:

predicate = and_(or_(item.c.id>5, item.c.id<3),
item.c.name.like('aap')))

And save this to a pickle column in the database. But it gives:

raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle module objects

I could write wrappers around or_ and and_ and the binaryexpressions
etc but I have the feeling there must be a better approach. Anyone got
a hint?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to