Re: pattern question

2007-10-10 Thread Rob Slotboom
Hi Malcolm, SMART Thanks Rob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [

Re: pattern question

2007-10-10 Thread Malcolm Tredinnick
On Wed, 2007-10-10 at 09:25 -0700, Rob Slotboom wrote: > I want to create a pattern to get one or more occurences of, let's > say, slug. > > /bla/ > /bla/blob/ > /bla/blob/blebber/ > /bla/blob/blebber/and_a_lot_more > etc. > > I get it working for up to two slugs with > > ('^([^/]+)/([^/]+)/$',

pattern question

2007-10-10 Thread Rob Slotboom
I want to create a pattern to get one or more occurences of, let's say, slug. /bla/ /bla/blob/ /bla/blob/blebber/ /bla/blob/blebber/and_a_lot_more etc. I get it working for up to two slugs with ('^([^/]+)/([^/]+)/$', 'page'), def page(request, *slugs): slug_list = [] for slug in slugs: