X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/96f8563c73a1c9514571058d147595da64606f5b..4fba0cb09c1619455d7ce419d353a953e8a231e2:/File.py diff --git a/File.py b/File.py index addba60..1db2a97 100755 --- a/File.py +++ b/File.py @@ -21,8 +21,8 @@ File. If exists, portal_transforms is called to extract text content, and publish attachments. -$Id: File.py 1549 2010-02-04 13:04:22Z pin $ -$URL: http://svn.cri.ensmp.fr/svn/Plinn/branches/CMF-2.1/File.py $ + + """ from Globals import InitializeClass @@ -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