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'
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
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
3 matches
Mail list logo