[Checkins] SVN: GenericSetup/trunk/context.py Flatten unicode strings: traversing to a string will also find unicode ids, but the other way around does not work. This was causing incorrect isDirectory return values to be returned

Wichert Akkerman wichert at wiggy.net
Thu Jun 28 18:55:26 EDT 2007


Log message for revision 77198:
  Flatten unicode strings: traversing to a string will also find unicode ids, but the other way around does not work. This was causing incorrect isDirectory return values to be returned

Changed:
  U   GenericSetup/trunk/context.py

-=-
Modified: GenericSetup/trunk/context.py
===================================================================
--- GenericSetup/trunk/context.py	2007-06-28 21:39:14 UTC (rev 77197)
+++ GenericSetup/trunk/context.py	2007-06-28 22:55:25 UTC (rev 77198)
@@ -592,7 +592,7 @@
         """
         try:
             snapshot = self._getSnapshotFolder()
-            object = snapshot.restrictedTraverse( path )
+            object = snapshot.restrictedTraverse( str( path ) )
         except ( AttributeError, KeyError ):
             return None
         else:



More information about the Checkins mailing list