You could do it imperatively...grab the configurator and use a for loop to make a series of calls to add_view.
--Paul On Jun 5, 2014, at 12:29 PM, Oscar Curero <[email protected]> wrote: > Hi, > > Is there a way to map different URLs to same view using traversal? The only > thing that seems to work is to double-decorate the method, ie: > > @view_config(context=Status, name="status_en") > @view_config(context=Status, name="status_es") > def viewStatus(self): > log.info("Calling view Status") > # do something... > > > -- > 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. -- 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.
