Changeset 1347 for CMESS/mediaplayer/branches
- Timestamp:
- 01.02.2011 13:55:21 (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMESS/mediaplayer/branches/3.1/com/zms/mediaplayer/mediaplayer.metaobj.xml
r1317 r1347 1750 1750 1751 1751 def getFileList(): 1752 temp_files = context.getZipArchive(context.getObjProperty('galleryUpload', REQUEST)) 1753 temp_files = filter(lambda x: x['content_type'].find('image') >= 0, temp_files) 1752 temp_file = context.getObjProperty('galleryUpload', REQUEST) 1753 1754 if (temp_file.getContentType().find('image') >= 0): 1755 temp_files = [{'filename' : temp_file.getFilename(), 1756 'data' : str(temp_file.getData()), 1757 'content_type' : temp_file.getContentType()}] 1758 else: 1759 temp_files = context.getZipArchive(context.getObjProperty('galleryUpload', REQUEST)) 1760 temp_files = filter(lambda x: (not x['isdir']) and (x['content_type'].find('image') >= 0) and (not x['filename'].startswith('.')), temp_files) 1754 1761 1755 1762 return temp_files … … 2025 2032 <item key="name"><![CDATA[ZMSGallery]]></item> 2026 2033 <item key="package"><![CDATA[com.zms.mediaplayer]]></item> 2027 <item key="revision"><![CDATA[2.1.1 4]]></item>2034 <item key="revision"><![CDATA[2.1.15]]></item> 2028 2035 <item key="type"><![CDATA[ZMSObject]]></item> 2029 2036 </dictionary> … … 5187 5194 <item key="name"><![CDATA[com.zms.mediaplayer]]></item> 5188 5195 <item key="package"/> 5189 <item key="revision"><![CDATA[3.1. 6]]></item>5196 <item key="revision"><![CDATA[3.1.7]]></item> 5190 5197 <item key="type"><![CDATA[ZMSPackage]]></item> 5191 5198 </dictionary>
Note: See TracChangeset
for help on using the changeset viewer.
