Re: Trying to create a custom renderer and getting error

2012-06-04 Thread Michael Merickel
You're looking at unreleased code, your options are to maintain/install a fork, or to copy that class into your own project or to write your own json renderer (which is very easy to do). If you install that fork, you can "from pyramid.renderers import JSON". On Mon, Jun 4, 2012 at 4:34 PM, Zak w

Re: Trying to create a custom renderer and getting error

2012-06-04 Thread Zak
I think the problem is that I'm using Pyramid 1.3, not 1.4. Do you know how I can update? -- 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/-/4HXDe3d1SdoJ

Re: Trying to create a custom renderer and getting error

2012-06-04 Thread Zak
Yes, I have import json at the top. And, no, I'm not using anything called JSON. I think I found the class I'm trying to call in here: https://github.com/Pylons/pyramid/blob/master/pyramid/renderers.py So how can I import that class? On Monday, June 4, 2012 3:51:32 PM UTC-5, Michael Merickel wr

Re: Trying to create a custom renderer and getting error

2012-06-04 Thread Michael Merickel
so you are "importing json" via "import json" ? and you are using some other thing called "JSON" ? On Mon, Jun 4, 2012 at 3:42 PM, Zak wrote: > I'm trying to create a custom renderer like this: > > config = Configurator(settings=settings) > > config.add_renderer('json_with_custom_default', > JSON