On 03-06-2013, tonthon wrote:
> Hi,
>
> you can also use inline view declaration in place of decorators:
>
> config.add_route('p1', '/p1')
> config.add_view(Main, route_name='p1')
>
> Combining this with the __import__ tool, you may achieve your goal quite
> easily.Yes, i can do that, i'll make a litle shortcut function for this now and begin slowly to try with decorator if it's the recomended way. Currently i don't see why this design ? I mean why not one fonction to link route with view or one decorator with route pattern ? I think i missed something... -- William Dodé Informaticien Indépendant -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
