Author: homebrew79
Date: Wed Dec 10 11:48:44 2008
New Revision: 279

Modified:
    branches/directory-style-urls/pages/views.py

Log:
fixed a regex

Modified: branches/directory-style-urls/pages/views.py
==============================================================================
--- branches/directory-style-urls/pages/views.py        (original)
+++ branches/directory-style-urls/pages/views.py        Wed Dec 10 11:48:44 2008
@@ -19,7 +19,7 @@
              current_page = get_object_or_404(Page.objects.published(site),  
pk=page_id)
          elif slug:
              try:
-                relative_url = re.sub(reverse('pages-root'), '',  
request.path, count=1)
+                relative_url = re.sub(r'^%s' % reverse('pages-root'), '',  
request.path)
                  current_page = URL.objects.filter(
                                     url=relative_url
                                 ).latest('creation_date').page

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

Reply via email to