chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpo...@apache.org
Subject svn commit: r1407909 - /chemistry/cmislib/trunk/src/cmislib/model.py
Date Sun, 11 Nov 2012 04:11:43 GMT
Author: jpotts
Date: Sun Nov 11 04:11:42 2012
New Revision: 1407909

URL: http://svn.apache.org/viewvc?rev=1407909&view=rev
Log:
Fixing problem in cmislib related to empty permission sets for a given authority

Modified:
    chemistry/cmislib/trunk/src/cmislib/model.py

Modified: chemistry/cmislib/trunk/src/cmislib/model.py
URL: http://svn.apache.org/viewvc/chemistry/cmislib/trunk/src/cmislib/model.py?rev=1407909&r1=1407908&r2=1407909&view=diff
==============================================================================
--- chemistry/cmislib/trunk/src/cmislib/model.py (original)
+++ chemistry/cmislib/trunk/src/cmislib/model.py Sun Nov 11 04:11:42 2012
@@ -3617,9 +3617,10 @@ class ACL(object):
                 if dirEl and dirEl.childNodes:
                     direct = dirEl.childNodes[0].data
                 # create an ACE
-                ace = ACE(principalId, perms, direct)
-                # append it to the dictionary
-                result[principalId] = ace
+                if (len(perms) > 0):
+                    ace = ACE(principalId, perms, direct)
+                    # append it to the dictionary
+                    result[principalId] = ace
         return result
 
     def getXmlDoc(self):



Mime
View raw message