Author: batiste.bieler
Date: Thu Jun  4 05:35:40 2009
New Revision: 538

Modified:
    trunk/pages/templatetags/pages_tags.py

Log:
Fix issue 105

Modified: trunk/pages/templatetags/pages_tags.py
==============================================================================
--- trunk/pages/templatetags/pages_tags.py      (original)
+++ trunk/pages/templatetags/pages_tags.py      Thu Jun  4 05:35:40 2009
@@ -62,11 +62,11 @@
                                      takes_context=True)(pages_menu)

  def pages_sub_menu(context, page, url='/'):
-    """Get the root page of the current page and
+    """Get the root page of the current page and
      render a nested list of all root's children pages"""
-    root = page.get_root()
      request = context['request']
-    children = page.get_children_for_frontend()
+    root = page.get_root()
+    children = root.get_children_for_frontend()
      if 'current_page' in context:
          current_page = context['current_page']
      return locals()

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