Implemented updateProperties in cmislib

git-svn-id: https://svn.apache.org/repos/asf/chemistry/cmislib/trunk@1595094 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/cmislib/browser/binding.py b/src/cmislib/browser/binding.py
index 0b49f94..c1d0fd1 100644
--- a/src/cmislib/browser/binding.py
+++ b/src/cmislib/browser/binding.py
@@ -323,7 +323,27 @@
 
         """
 
-        pass
+        # get the root folder URL
+        updateUrl = self._repository.getRootFolderUrl() + "?objectId=" + self.id
+
+        props = {"cmisaction" : "update"}
+
+        propCount = 0
+        for prop in properties:
+            props["propertyId[%s]" % propCount] = prop
+            props["propertyValue[%s]" % propCount] = properties[prop]
+            propCount += 1
+
+        # invoke the URL
+        result = self._cmisClient.binding.post(updateUrl.encode('utf-8'),
+                                               urlencode(props),
+                                               'application/x-www-form-urlencoded',
+                                               self._cmisClient.username,
+                                               self._cmisClient.password)
+
+        self.data = result
+        self._initData()
+        return self
 
     def move(self, sourceFolder, targetFolder):