chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpo...@apache.org
Subject svn commit: r1735887 - /chemistry/cmislib/trunk/src/cmislib/browser/binding.py
Date Sun, 20 Mar 2016 17:24:11 GMT
Author: jpotts
Date: Sun Mar 20 17:24:10 2016
New Revision: 1735887

URL: http://svn.apache.org/viewvc?rev=1735887&view=rev
Log:
Adjust cmislib browser binding createFolder method to close #CMIS-971

Modified:
    chemistry/cmislib/trunk/src/cmislib/browser/binding.py

Modified: chemistry/cmislib/trunk/src/cmislib/browser/binding.py
URL: http://svn.apache.org/viewvc/chemistry/cmislib/trunk/src/cmislib/browser/binding.py?rev=1735887&r1=1735886&r2=1735887&view=diff
==============================================================================
--- chemistry/cmislib/trunk/src/cmislib/browser/binding.py (original)
+++ chemistry/cmislib/trunk/src/cmislib/browser/binding.py Sun Mar 20 17:24:10 2016
@@ -2043,13 +2043,14 @@ class BrowserFolder(BrowserCmisObject):
         props["propertyId[1]"] = "cmis:objectTypeId"
         if properties.has_key('cmis:objectTypeId'):
             props["propertyValue[1]"] = properties['cmis:objectTypeId']
+            del properties['cmis:objectTypeId']
         else:
             props["propertyValue[1]"] = "cmis:folder"
 
         propCount = 2
-        for prop in properties:
-            props["propertyId[%s]" % propCount] = prop.key
-            props["propertyValue[%s]" % propCount] = prop
+        for key, val in properties.items():
+            props["propertyId[%s]" % propCount] = key
+            props["propertyValue[%s]" % propCount] = val
             propCount += 1
 
         # invoke the URL



Mime
View raw message