From: Philippe N. <sw...@fr...> - 2004-08-23 16:25:18
|
Hi, I have a little problem w/ orderBy keyword of MultipleJoin(). I have the following class: class Album(SQLObject): # [ ... ] albumObjects =3D MultipleJoin('AlbumObject',orderBy=3D-AlbumObject.q.modificationDate) And when i try to use it, i get: File "/usr/lib/python2.3/site-packages/sqlobject/joins.py", line 87, in sorter orderBy =3D orderBy[1:]\nexceptions.AttributeError: SQLPrefix instance has no attribute '__getitem__' And in fact there's no __getitem__ method in SQLExpression (from which SQLPrefix inheritates). If I replace -AlbumObject.q.modificationDate by '-modificationDate', it works like a charm. Do you think it's a bug in the sqlbuilder module or in joins.py ? Philippe |