-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Iain Duncan wrote: > Hi bfg folks, one feature I miss from pylons is having elements from the > route parsing be automatically passed to controller methods as named args. I > expect this got some thought and was decided against, I'm curious why? It > seems to me it would be nice if this route: > > <route > path="/foo/bar/:baz" > name="foo" > view=".views.foo_view" > view_attr="bar" > /> > > would automatically pass baz in, bypassing the need to look in > reques.matchdict if foo_view had a method like: > > def bar(self, baz): > > Thoughts?
I doubt we will add that as the default behavior -- we are hoping to keep the calling convention completely uniform by default. However, it should be trivial to write a decorator which you can use to adapt the two. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkwGskIACgkQ+gerLs4ltQ6AAQCdEBnnb/nb9cz1SmxDOl7jsUvB mT0AnRxsJg4p3N5hUXFLxeZmmx6LjZ8K =WQuU -----END PGP SIGNATURE----- _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev