[web2py] Re: dynamic url/functions in controller

2013-07-22 Thread Massimo Di Pierro
oops. I fixed the typo in my message. On Monday, 22 July 2013 14:31:20 UTC-5, Antonis Konstantinos Tzorvas wrote: > > routes_in = [ > ['/droughtmonitor/stations/$name', > '/droughtmonitor/stations/show/$name'], > ['/droughtmonitor/stations/$name/edit', > '/droughtmonitor/stations/edit/$name'

[web2py] Re: dynamic url/functions in controller

2013-07-22 Thread Antonis Konstantinos Tzorvas
routes_in = [ ['/droughtmonitor/stations/$name', '/droughtmonitor/stations/show/$name'], ['/droughtmonitor/stations/$name/edit', '/droughtmonitor/stations/edit/$name'], ] routes_out = [(y,x) for (x,y) in routes_in] it worked! care in the $node-$name difference as it wanted to be the same var

[web2py] Re: dynamic url/functions in controller

2013-07-22 Thread Massimo Di Pierro
In routes.py routes_in = [ ['/app/nodes/$name', '/app/nodes/show/$node'], ['/app/nodes/$name/edit', '/app/nodes/edit/$node'], ['/app/nodes/$name/graph', '/app/nodes/graph/$node'], ] routes_out = [(y,x) for (x,y) in routes_in] On Monday, 22 July 2013 13:37:57 UTC-5, Antonis Konstantinos Tzo