currently no.
On Monday, 21 July 2014 16:02:57 UTC-5, chuan137 wrote:
>
> Example of parse_as_rest function, there define tables
>
> db.define_table('person',Field('name'),Field('info'))
> db.define_table('pet',Field('ownedby',db.person),Field('name'),Field(
> 'info'))
>
> which are served with the pattern
>
> "/{person.name}/pets[pet.ownedby]/{pet.name}".
>
>
> That means a valid URL is for instance
>
>> /Tom/pets/BlackCat
>
>
> Is it possible to simplify the pattern, so that
>
>> /Tom/BlackCat
>
> is also valid?
>
> I am aware that url routing does the trick, but I just wonder if there is
> a more direct way to set up the pattern?
>
> Thanks
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.