opental-checkins
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OpenTAL-checkins] opental/OpenTAL/Static Directory.py


From: Fernando Lalo Martins
Subject: [OpenTAL-checkins] opental/OpenTAL/Static Directory.py
Date: Wed, 19 Feb 2003 19:55:23 -0500

CVSROOT:        /cvsroot/opental
Module name:    opental
Changes by:     Fernando Lalo Martins <address@hidden>  03/02/19 19:55:23

Modified files:
        OpenTAL/Static : Directory.py 

Log message:
        trying to debug an infinite recursion

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/opental/opental/OpenTAL/Static/Directory.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: opental/OpenTAL/Static/Directory.py
diff -u opental/OpenTAL/Static/Directory.py:1.2 
opental/OpenTAL/Static/Directory.py:1.3
--- opental/OpenTAL/Static/Directory.py:1.2     Tue Feb  4 21:49:35 2003
+++ opental/OpenTAL/Static/Directory.py Wed Feb 19 19:55:23 2003
@@ -60,7 +60,9 @@
                 else:
                     # file *REALLY* does not exist.  Perhaps it is a listing 
mask?
                     l = self.__path.listdir(name)
-                    if l:
+                    if len(l) == 1:
+                        return AttributeError, name
+                    elif l:
                         return [getattr(self, p.name) for p in l]
                     raise AttributeError, name
             self.__cache[name] = o




reply via email to

[Prev in Thread] Current Thread [Next in Thread]