[CMF-checkins] SVN: CMF_Extras/trunk/CMFCollector/CollectorIssue.py
Fix for Plone 2.something+ (use ATCT types).
Chris McDonough
chrism at plope.com
Wed Jan 31 12:29:34 EST 2007
Log message for revision 72279:
Fix for Plone 2.something+ (use ATCT types).
Changed:
U CMF_Extras/trunk/CMFCollector/CollectorIssue.py
-=-
Modified: CMF_Extras/trunk/CMFCollector/CollectorIssue.py
===================================================================
--- CMF_Extras/trunk/CMFCollector/CollectorIssue.py 2007-01-31 15:28:29 UTC (rev 72278)
+++ CMF_Extras/trunk/CMFCollector/CollectorIssue.py 2007-01-31 17:29:34 UTC (rev 72279)
@@ -562,7 +562,14 @@
it.manage_permission('View', acquire=1)
it.manage_permission('Access contents information', acquire=1)
it.description = description
- it.manage_upload(file)
+ if getattr(it, 'manage_upload', None) is not None:
+ # CMF File
+ it.manage_upload(file)
+ elif getattr(it, 'setFile', None) is not None:
+ # ATCT File
+ it.setFile(file)
+ else:
+ raise ValueError('unknown file type')
return it
def upload_number(self):
More information about the CMF-checkins
mailing list