Author: batiste.bieler
Date: Wed Apr 1 04:23:21 2009
New Revision: 427
Modified:
trunk/pages/utils.py
Log:
Try a more bullet prof PlaceholderNode detection
Modified: trunk/pages/utils.py
==============================================================================
--- trunk/pages/utils.py (original)
+++ trunk/pages/utils.py Wed Apr 1 04:23:21 2009
@@ -37,11 +37,9 @@
"""
Recursively search into a template node list for PlaceholderNode node
"""
- # to avoid circular import
- # must be imported like this for isinstance
- from pages.templatetags.pages_tags import PlaceholderNode
for node in nodelist:
- if isinstance(node, PlaceholderNode):
+ # I don't have found a better way to do it now. isinstance fail
quickly.
+ if str(node.__class__).find("PlaceholderNode") >=0:
already_in_plist = False
for p in plist:
if p.name == node.name:
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---