Hi !
With the most recent TG release (b2) support for jsonifying sqlalchemy
maped objects has been added to turbojson.
Previously one had to either add a __json__() method to mapped
classes, or use explicit jsonify.when('isintance(obj, Foo)') to
provide jsonification of a mapped sqlalchemy.
Now, with the upgrade the rule in turbojson is becoming ambiguous with
the two previously mentioned rules, meaning i just can't customize
sqlalchemy mapped object's jsonification, because either i add a
__json__ and dispatch doesn't know whether to use __json__ or the
builtin jsonify_saobject (AmbiguousMethod), or I add an explicit rule,
but the same error appears.
How should I go about customizing the jsonification of my sqlalchemy-
mapped objects without patching turbojson ?
Is there some kind of prioritization of dispatch method in case of
ambiguous method ?
Thanks a lot !
Raphael
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---