On Apr 4, 2:31 pm, Ksenia Marasanova <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I have the following mappings:
>
> map.connect(':lang/news/:id', controller='main', action='news',  
> lang='nl', id=None, requirements=dict(lang='(nl|de|en)'))
> map.connect(':lang/:page', controller='main', action='page',  
> lang='nl', page=None, requirements=dict(lang='(nl|en|de)', page='(?!
> news)'))
>
> The example of urls that should be generated:
>
> /nl/ => homepage of the website in Dutch
> /nl/somepage1 => website pages in Dutch
> /nl/news/ => newsarchive in Dutch
> /nl/news/21 => single newsitem in Dutch
>
> I experience some weird things with url generation, and I have a  
> feeling that the maps overlap, so to make sure my setup is correct I  
> wanted to ask if it's possible at all to exclude things, and what is  
> the syntax of it? I couldn't find any examples :/

I think the important part of my question has been lost during copy/
paste :)
The problem is that I can't exclude "news" page from being processed
by the second rule.   The requirement above (the page part) doesn't
seem to work.

Ksenia.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to