X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/b978c84ac9870bfccfcce796e7258ff0673aa8b4..4fba0cb09c1619455d7ce419d353a953e8a231e2:/File.py?ds=sidebyside diff --git a/File.py b/File.py index 99c403a..1db2a97 100755 --- a/File.py +++ b/File.py @@ -54,10 +54,10 @@ class File(BaseFile) : if cacheTuple : cacheData = cacheTuple[1] - subObDict = cacheData.getSubObjects() - if subObDict.has_key(name) : - fileOb = OFS.Image.File(name, name, subObDict[name]) - return fileOb + subObDict = cacheData.getSubObjects() + if subObDict.has_key(name) : + fileOb = OFS.Image.File(name, name, subObDict[name]) + return fileOb raise AttributeError, name