It's pretty basic and unfinished at all but .. if it can help
On 03/01/2012 06:22, Cosmia Luna wrote:
I want to to return some SQLAlchemy object to the json renderer, of course it didn't work.Can I add a method to the Base like: class Base(object): def __jsonSerialize__(self): pass # return a dict-like object Base=declarative_base(cls=Base)Or I have to write a renderer called ejson(extendable json renderer) or some other wrapping the default json renderer?Thanks, Cosmia --You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/GW86sjghplgJ.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/pylons-discuss?hl=en.
-- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
<<attachment: jcigar.vcf>>
