Re: Beginner Question: How to use a ${variable} in a Mako File in request.route_url()

2013-07-09 Thread Petr Blahos
> > > So far in my project.py i added the routing: > > config.add_route('normalView', '/view/{id}') >> config.add_route('updatedView', '/view/{id}') > > > Hi Michael, this is not going to work, you expect your matching pattern /view/{id} to be mapped to 2 different route names. Pyramid will

Re: Beginner Question: How to use a ${variable} in a Mako File in request.route_url()

2013-07-09 Thread andi
you're already in a script context. On 09.07.2013, at 11:41, Michael Tränkner wrote: > Hi, > > i am rather new to Pyramid(v1.3b1) in general. > i basically want to redirect to the same page you are on, just want to > execute some code on the server side and then show > the refreshed versio

Beginner Question: How to use a ${variable} in a Mako File in request.route_url()

2013-07-09 Thread Michael Tränkner
Hi, i am rather new to Pyramid(v1.3b1) in general. i basically want to redirect to the same page you are on, just want to execute some code on the server side and then show the refreshed version of the page you are on. So far in my project.py i added the routing: config.add_route('normalVi