[SQL-CVS] SQLObject/SQLObject SQLObject.py,1.38,1.39
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <ian...@us...> - 2003-05-25 02:39:48
|
Update of /cvsroot/sqlobject/SQLObject/SQLObject In directory sc8-pr-cvs1:/tmp/cvs-serv26546/SQLObject Modified Files: SQLObject.py Log Message: Used proper DB name mappings, not the style, for orderBy Index: SQLObject.py =================================================================== RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/SQLObject.py,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** SQLObject.py 24 May 2003 21:17:17 -0000 1.38 --- SQLObject.py 25 May 2003 02:39:45 -0000 1.39 *************** *** 1052,1056 **** orderBy = self.ops['orderBy'] if orderBy is not None: ! self.ops['dbOrderBy'] = sourceClass._style.pythonAttrToDBColumn(orderBy) def clone(self, **newOps): --- 1052,1057 ---- orderBy = self.ops['orderBy'] if orderBy is not None: ! if sourceClass._SO_columnDict.has_key(orderBy): ! self.ops['dbOrderBy'] = sourceClass._SO_columnDict[orderBy].dbName def clone(self, **newOps): |