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
from Products.CMFDefault.File import File as BaseFile
from Products.CMFCore.permissions import View, ModifyPortalContent
from Products.CMFCore.utils import getToolByName
-from swfheader import parse as parseswf
+from hexagonit.swfheader import parse as parseswf
class File(BaseFile) :
""" file class with portal_transforms support """
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