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].
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.