Author: batiste.bieler
Date: Thu Jun  4 05:45:07 2009
New Revision: 542

Modified:
    trunk/pages/views.py

Log:
Fix issue 106

Modified: trunk/pages/views.py
==============================================================================
--- trunk/pages/views.py        (original)
+++ trunk/pages/views.py        Thu Jun  4 05:45:07 2009
@@ -31,7 +31,8 @@

      if slug:
          current_page = get_page_from_slug(slug, request, lang)
-        if request.META['PATH_INFO'] != current_page.get_absolute_url():
+        if current_page and request.META['PATH_INFO'] != \
+                                    current_page.get_absolute_url():
              raise Http404
      elif pages:
          current_page = pages[0]

--~--~---------~--~----~------------~-------~--~----~
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