> Now i'm doing something like that:
>
> urls = (
> '/mailing', 'newsletter',
> '/mailing/(.*)', 'newsletter'
> )
> [...]
> Is there any way to erradicate this duplicated entry from urls?
Here is one way:
urls = (
'/mailing(?:/(.*))?', 'newsletter'
)
But your approach is more readable than this.
It can be simpler if you are willing to take '/' as part of the action.
urls = (
'/mailing(/.*)?', 'newsletter'
)
Anand
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---