Re: [SQLObject] orderBy table.q.attribute
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ma...> - 2004-04-23 15:48:13
|
On Fri, Apr 23, 2004 at 05:22:00PM +0200, Philippe Normand wrote: > > > > patients = Patient.select(None, orderBy=-Patient.q.registrationTime) > > I don't understand the 'None' ... Do you want to select ... nothing ? hmm :) I want to select all. None and "all" do the same - select all. > Try replacing None with 'all'. In the real program there is a complex query. It does not matter - the problem is in orderBy, not in the query. > And, still the dash doesn't make sense to me > because orderBy has to be a string, not a number. Anyway ... It has not to be a string. At least according to the documentation. Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |