def select(*q, **where): if where: print "database.select's kwd arguments have been deprecated in favor of query" result = list(q) for k, v in where.iteritems(): if v is None: result.append(query.hasattr(k)) continue result.append(query.hasvalue(k, v)) return __select(query._and(*result))
def select(*q, **where): if where: print "database.select's kwd arguments have been deprecated in favor of query" result = list(q) for k,v in where.iteritems(): if v is None: result.append( query.hasattr(k) ) continue result.append( query.hasvalue(k,v) ) return __select( query._and(*result) )