I'm using TG2.1, by the way. On Jul 8, 3:09 pm, Rotem Tamir <[email protected]> wrote: > Hi Everyone, > > Perhaps you can help me. > > I want to return an object to the view using 'json' but don't want one > of the fields (password) being sent. Can I omit a specific field? > > @expose('json') > def user(self,id): > u = User.get(id) > return dict(user=u) > > I don't want user.password to be sent back to the client over the web. > What can I do? > > Rotem Tamir
-- 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.

