r252447 - collective.imstransport/trunk/collective/imstransport/utilities
"Brent Lambert" <svn-changes-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.collective.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: blambert
Date: Tue Jun 4 23:13:17 2013
New Revision: 252447
Modified:
collective.imstransport/trunk/collective/imstransport/utilities/objcreator.py
Log:
Fixed type error on upload (Susan, UC3M)
Modified: collective.imstransport/trunk/collective/imstransport/utilities/objcreator.py
==============================================================================
--- collective.imstransport/trunk/collective/imstransport/utilities/objcreator.py (original)
+++ collective.imstransport/trunk/collective/imstransport/utilities/objcreator.py Tue Jun 4 23:13:17 2013
@@ -35,13 +35,13 @@
""" Read the manifest """
for id in objDict:
data = objDict[id]
- if data['type'] == 'Large File':
- break
# Recursively create objects based on metadata dictionary
if id == 'package':
if data.has_key('file') and getattr(context, 'setText', None):
context.setText(source.readFile(data['file']))
self.applyMetadata(context, data)
+ elif data['type'] == 'Large File':
+ break
else:
parent = self.createFolderPath(context, data['path'])
exobj = getattr(parent.aq_inner.aq_explicit, data['id'], None)
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j