and an afterthought - I think your design is flawed IHMO, because you 
model a n:m relation. Which means that one email could be used by 
several users. Which is non-sensical.

Instead, you should do it like this:

class User(SO):
     emails = MultipleJoin("Email")

class Email(SO):
     email = StringCol()

     user = ForeignKey("User")

Then the query is


User.select(User.q.id == Email.q.user_id, orderBy=Email.q.email)

Diez

--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to