Revision: 640
Author: batiste.bieler
Date: Fri Aug 14 06:27:40 2009
Log: Try to fix bug 145
http://code.google.com/p/django-page-cms/source/detail?r=640

Modified:
  /trunk/pages/templatetags/pages_tags.py

=======================================
--- /trunk/pages/templatetags/pages_tags.py     Fri Aug 14 06:19:05 2009
+++ /trunk/pages/templatetags/pages_tags.py     Fri Aug 14 06:27:40 2009
@@ -52,7 +52,7 @@
      """Render a nested list of all children of the given page, including
      this page"""
      lang = context.get('lang', settings.PAGE_DEFAULT_LANGUAGE)
-    path = context['path']
+    path = context.get('path', None)
      site_id = None
      children = page.get_children_for_frontend()
      if 'current_page' in context:
@@ -65,7 +65,7 @@
      """Get the root page of the given page and
      render a nested list of all root's children pages"""
      lang = context.get('lang', settings.PAGE_DEFAULT_LANGUAGE)
-    path = context['path']
+    path = context.get('path', None)
      root = page.get_root()
      children = root.get_children_for_frontend()
      if 'current_page' in context:

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