[SQL-CVS] SQLObject/SQLObject SQLObject.py,1.34,1.35
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <ian...@us...> - 2003-05-12 01:59:45
|
Update of /cvsroot/sqlobject/SQLObject/SQLObject In directory sc8-pr-cvs1:/tmp/cvs-serv23391/SQLObject Modified Files: SQLObject.py Log Message: make SomeClass.select() mean select all Index: SQLObject.py =================================================================== RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/SQLObject.py,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** SQLObject.py 10 May 2003 21:37:18 -0000 1.34 --- SQLObject.py 12 May 2003 01:59:42 -0000 1.35 *************** *** 777,781 **** # 3-03 @@: Should this have a connection argument? ! def select(cls, clause, clauseTables=None, orderBy=NoDefault, groupBy=None, limit=None, lazyColumns=False): --- 777,781 ---- # 3-03 @@: Should this have a connection argument? ! def select(cls, clause=None, clauseTables=None, orderBy=NoDefault, groupBy=None, limit=None, lazyColumns=False): *************** *** 1009,1013 **** **ops): self.sourceClass = sourceClass ! if isinstance(clause, str) and clause == 'all': clause = SQLBuilder.SQLTrueClause self.clause = clause --- 1009,1013 ---- **ops): self.sourceClass = sourceClass ! if clause is None or isinstance(clause, str) and clause == 'all': clause = SQLBuilder.SQLTrueClause self.clause = clause |