[sqlalchemy] Re: how to dynamically creating and_ clause

2008-10-07 Thread az
On Tuesday 07 October 2008 12:20:49 robert rottermann wrote: hi there, I would like to add entries to an and_ clause dinamycally like: and_clause = and_() if x: add sommething to and_clause if y: add sommething to and_clause .. 1. clist = [] if x: add sommething to clist if y:

[sqlalchemy] Re: how to dynamically creating and_ clause

2008-10-07 Thread Julien Cigar
.append() On Tue, 2008-10-07 at 11:20 +0200, robert rottermann wrote: hi there, I would like to add entries to an and_ clause dinamycally like: and_clause = and_() if x: add sommething to and_clause if y: add sommething to and_clause .. how would I do that thanks robert