#######################################################################################
""" Basic portal attachment management tool.
-$Id: AttachmentTool.py 1261 2008-01-07 01:34:23Z pin $
-$URL: http://svn.cri.ensmp.fr/svn/Plinn/branches/CMF-2.1/AttachmentTool.py $
+
+
"""
from AccessControl import ClassSecurityInfo
id = makeValidId(attachments, title)
if typeName == 'Photo':
- thumbSize = {'thumb_height' : portal.getProperty('thumb_height', 128),
- 'thumb_width' : portal.getProperty('thumb_width', 128)}
+ thumbSize = {'thumb_height' : portal.getProperty('thumb_size', 128),
+ 'thumb_width' : portal.getProperty('thumb_size', 128)}
fileOb = Photo(id, title, file, **thumbSize)
elif typeName == 'File' :
fileOb = File(id, title, '')