Thanks for the prompt response. Jamil Atta Junior
2011/9/12 Chris McDonough <[email protected]> > On Mon, 2011-09-12 at 14:19 -0400, Chris McDonough wrote: > > The JSONP renderer cannot be used via ZCMLm, sorry. > > I should say that the above is not entirely true, it just requires extra > effort: > > # in module named myapp.renderers > > from pyramid.renderers import JSONP > jsonp = JSONP('callback') > > Then in ZCML: > > <renderer > name="jsonp" > factory="myapp.renderers.jsonp" > /> > > <route > name="site" > pattern="/analytics/site/{instance}/{output}" > view="analytics.views.site" > renderer="jsonp" > /> > > > - C > > > > > > - C > > > > On Mon, 2011-09-12 at 09:58 -0700, Jamil Atta Junior wrote: > > > Hi people, > > > > > > I try to use the zcml with jsonp, and I receiving this error message: > > > > > > result = renderer(value, system_values) > > > TypeError: __call__() takes exactly 2 arguments (3 given) > > > > > > > > > My zcml file: > > > > > > <renderer > > > name="jsonp" > > > factory="pyramid.renderers.JSONP" > > > /> > > > > > > <route > > > name="site" > > > pattern="/analytics/site/{instance}/{output}" > > > view="analytics.views.site" > > > renderer="jsonp" > > > /> > > > > > > Thanks. > > > > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-devel" 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-devel?hl=en. > > -- Atenciosamente, Jamil Atta Junior -- You received this message because you are subscribed to the Google Groups "pylons-devel" 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-devel?hl=en.
