Re: Routes: Problem using .resource

2006-10-05 Thread Wyatt Baldwin
On 10/5/06, Ben Bangert <[EMAIL PROTECTED]> wrote: > > wyatt-bC wrote: > > > I went and looked at the source and the problem, if that's what it is, > > > seems to be on line 963 in base.py: > > > > > > route_options['requirements'] = {'id':'\w+'} > > > > > > Would it wreak havoc to allow n

Re: Routes: Problem using .resource

2006-10-05 Thread Ben Bangert
On Oct 5, 2006, at 10:35 AM, Ian Bicking wrote: >> POST /messages/1;test -> messages.test() >> >> Or maybe you want to add a preview option to a new member >> resource, you >> could. Does that help? > > Would it be POST /messages/1;preview+edit ? (or preview_edit) Simply > ;preview would als

Re: Routes: Problem using .resource

2006-10-05 Thread Ian Bicking
Ben Bangert wrote: > The ;edit member method is a different representation of the message > resource, one that is setup for being edited. For example, if you > wanted a test post, you'd add an additional new member method so that > you could do: > POST /messages/1;test -> messages.test() > > Or

Re: Routes: Problem using .resource

2006-10-05 Thread Ben Bangert
wyatt-bC wrote: > > I went and looked at the source and the problem, if that's what it is, > > seems to be on line 963 in base.py: > > > > route_options['requirements'] = {'id':'\w+'} > > > > Would it wreak havoc to allow non-word characters in id, other than > > that there might be a conf

Re: Routes: Problem using .resource

2006-10-04 Thread wyatt-bC
wyatt-bC wrote: > Ben Bangert wrote: > > On Oct 3, 2006, at 5:39 PM, wyatt-bC wrote: > > > > > I'm trying to use the resource method like this to create some Web > > > services: > > > > > > m.resource( > > > 'address', > > > controller='address', > > > path_prefix='/:r

Re: Routes: Problem using .resource

2006-10-04 Thread wyatt-bC
Ben Bangert wrote: > On Oct 3, 2006, at 5:39 PM, wyatt-bC wrote: > > > I'm trying to use the resource method like this to create some Web > > services: > > > > m.resource( > > 'address', > > controller='address', > > path_prefix='/:region', > > name_prefix='regi

Re: Routes: Problem using .resource

2006-10-03 Thread Ben Bangert
On Oct 3, 2006, at 5:39 PM, wyatt-bC wrote: > I'm trying to use the resource method like this to create some Web > services: > > m.resource( > 'address', > controller='address', > path_prefix='/:region', > name_prefix='region_' > ) The controller you speci

Routes: Problem using .resource

2006-10-03 Thread wyatt-bC
I'm trying to use the resource method like this to create some Web services: m.resource( 'address', controller='address', path_prefix='/:region', name_prefix='region_' ) I'm following this example from the Routes manual of using path_prefix and name_prefix