Chris,
> I'm guessing that the "User" object that you use in the "getUsers"
> controller method is not what you think. Maybe it gets overwritten by
> some other code in your controllers.py file.
You're right. There's another User class which had overwritten my
SQLObject User class. Ok, now I know how to fix it. Thanks a lot!
>
> Try to diagnose by adding a little debug logging:
>
> @wsexpose(str)
> def getUsers(self):
> log.debug("User: %r", User)
> log.debug("Type of 'User' object: %s": type(User))
> log.debug(User.__dict__)
> users = User.select()
> return "There are %s users in the DB" % users.count()
--
Víctor Peinado
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---