Please note that in keeping with PEP8 style (which I don't like, but that's our standard), the byUserId method has been changed to by_user_name.

I'm fairly certain you get a DeprecationWarning if you use an old attribute, but I didn't bother to put in all the hacky SQLObject functions.

On 22 Apr, 2006, at 4:21 am, Matthew Bevan wrote:

  def byUserId(id): return Account.byUsername(id)

  byUserId = staticmethod(byUserId)


--
Jeff Watkins

Getting an education was a bit like a communicable sexual disease. It made you unsuitable for a lot of jobs and then you had the urge to pass it on. 
-- (Terry Pratchett, Hogfather)



--~--~---------~--~----~------------~-------~--~----~
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