SVN: r25829 - trunk/quixote

David Binger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Wed, 5 Jan 2005 11:24:49 -0500
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Author: dbinger
Date: 2005-01-05 09:11:40 -0500 (Wed, 05 Jan 2005)
New Revision: 25829

Modified:
   trunk/quixote/util.py
Log:
Remove isinstance check from get_directory_path().


Modified: trunk/quixote/util.py
===================================================================
--- trunk/quixote/util.py	2005-01-05 14:02:36 UTC (rev 25828)
+++ trunk/quixote/util.py	2005-01-05 14:11:40 UTC (rev 25829)
@@ -376,15 +376,15 @@
     return r.getvalue()
 
 def get_directory_path():
-    """() -> [Directory]
-    Return the list of traversed Directory instances.
+    """() -> [object]
+    Return the list of traversed instances.
     """
     path = []
     frame = sys._getframe()
     while frame:
         if frame.f_code.co_name == '_q_traverse':
             self = frame.f_locals.get('self', None)
-            if path[:1] != [self] and isinstance(self, Directory):
+            if path[:1] != [self]:
                 path.insert(0, self)
         frame = frame.f_back
     return path