json

0 views
Skip to first unread message

notnow

unread,
Nov 20, 2009, 3:49:33 PM11/20/09
to TurboGears
I can't get json to work on tg2.1. It may just be be, but It works
fine for me in 2.0. I tried to comprehend some of the discussions
around json and tg2.1, but I am not expert enough to comprehend, at
this point, exactly what was being discussed. The basic @expose
('json') should still work shouldn't it? I get a 500 error when I
look at the url.

I just updated with latest 2.1 version today to see if there had been
a fix since my initial 2.1 installation.

Mark Ramm

unread,
Nov 20, 2009, 4:18:02 PM11/20/09
to turbo...@googlegroups.com
are you using @jsonify.when decorators?
> --
>
> You received this message because you are subscribed to the Google Groups "TurboGears" group.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/turbogears?hl=.
>
>
>



--
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

KMCB

unread,
Nov 20, 2009, 5:26:28 PM11/20/09
to TurboGears
notnow,

I don't know if this is your issue, but I had to add this app_cfg.py
when moving to TG2.1

#Enable json in expose
base_config.renderers.append('json')

kmcb

notnow

unread,
Nov 20, 2009, 7:49:16 PM11/20/09
to TurboGears
Thanks. I overlooked that. That took care of it.
Reply all
Reply to author
Forward
0 new messages