OK. Thanks! El lunes, 17 de marzo de 2014 20:51:01 UTC, Michael Merickel escribió: > > Currently there is not a mechanism to expose the selected renderer within > Pyramid. There are possible work-arounds but in the end you might be better > off removing the auto-renderer declaration and instead using > p.renderers.render_to_response() or p.renderers.render() yourself if you > need this functionality. > > > On Mon, Mar 17, 2014 at 3:45 PM, Emilio García-Pumarino Álvarez < > [email protected] <javascript:>> wrote: > >> Hello, >> I have this: >> @view_config(route_name='vitra_cinema_film_episode_search', >> *renderer='vitra/cinema/film/episode/search.mako'*) >> def cinema_film_episode_search(self): >> *template = 'vitra/cinema/film/episode/search.mako'* >> logic = self.logic_film_episode_search() >> if self.request.is_xhr: >> html = render(template, logic, request=self.request) >> if 'redirect_to_url' in logic: >> return {'redirect_to_url': logic['redirect_to_url'], >> 'referer': self.matched_route} >> return Response(json.dumps({'html': html, 'section': >> self.matched_route})) >> return logic >> >> Is possible know the renderer name? I would like write it only once. >> >> Thanks! >> >> Best, >> Emilio >> >> -- >> You received this message because you are subscribed to the Google Groups >> "pylons-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/pylons-discuss. >> For more options, visit https://groups.google.com/d/optout. >> > >
-- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
