On Friday, February 10, 2012 5:35:50 PM UTC-5, Detectedstealth wrote: > > sql = db > -- if tag : > sql = sql(db.mytable.tag = "xxx") > -- if status: > sql = sql(db.mytable.status = "xxx") > > result = sql.select()
Yes, that's nice too. It works because the Set object is callable, and calling it adds a new condition to its query. Anthony