In primary SA,
can  do the ordering at mapper, query object and select method.

But in activemapper, How to do these, above?
I try to use the order_by in select method, but seems can't contrain a
column value:
class Person(ActiveMapper):
  class mapping:
    id = column(Integer, primary=True)
    name = column(String)
    birth = column(Datetime)
    # ..

Person.select(Person.c.birth=='some date', order_by=Person.c.name)

Then the exception:
SQLError: (OperationalError) no such column: report.birth
'SELECT person.name AS person_name, person.id AS person_id,
person.birth AS person.birth
FROM person
WHERE person.birth = ? ORDER BY person.name

Is there anything I just miss?
-- 
I'm lazy, I'm coding.
http://lazycoding.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to