[Chicago] Pylons/Groovie Routes Help
Ian Bicking
ianb at colorstudy.com
Wed Apr 30 06:41:08 CEST 2008
Daniel Griffin wrote:
>
> :id in that case would be restricted to a single segment, yes. I
> think you could use *id, which would allow any number of segments to
> be matched.
>
>
> So, if I just change :id to *ids then I can get composite key support?
> This is the #1 thing I am looking for. How do they get dispatched to the
> controller then?
>
> Like def edit(self, key1, key2, key3): ?
If you have *ids, then it will match anything, and you'll get a single
variable ids that will be like 'BAT/JOB/11:11:11/05-03-2007'
--
Ian Bicking : ianb at colorstudy.com : http://blog.ianbicking.org
More information about the Chicago
mailing list