Jesper,
How is custom jsonifying handled in TG2?
From the docs I can understand that TurboJSON is deprecated. For my
application I prefer to use something like the jsonify.when decorator
and not to add the __json__ method to my objects.
In TG 2.1, we added this back using "simplegeneric". You'll need to
easy_install simplegeneric from PyPI and then you can see an example of
using custom jsonifiers in the test suite here:
http://bitbucket.org/turbogears/tg-dev/src/tip/tg/tests/test_generic_json.py
Hope this helps!
--
Jonathan LaCour
http://cleverdevil.org
--
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.