[Chicago] Pylons/Groovie Routes Help

Daniel Griffin dgriff1 at gmail.com
Fri May 2 19:38:16 CEST 2008


I went ahead and changed my routes to a simple /:controller/:action/*id and
my code accordingly and its awesome. Thanks so much for your help.

Dan

On Tue, Apr 29, 2008 at 11:41 PM, Ian Bicking <ianb at colorstudy.com> wrote:

> 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
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20080502/05b366ba/attachment.htm>


More information about the Chicago mailing list