so you sort of solved this. you at least pointed me in the right
direction to experiment!
works:
@action(renderer='json')
doesn't work:
@view_config(renderer='json')
On Dec 4, 8:11 pm, Mike Orr <[email protected]> wrote:
> I don't think so, but akhet does use pyramid_handlers, so it's attuned
> to @action rather than @view_config. Still, I doubt that would
> sabotage @view_config. Do you have a config.scan() line in your init
> file? If not, it's possible that config.add_handler() is registering
> the view but misinterpreting the view options. There may be problems
> with mixing add_handler and @view_config in the same view class. If
> you don't have config.scan() and config.add_handler() is not
> registering the view, then I don't see how the view would be
> accessible at all.
--
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.