You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by jp...@apache.org on 2012/11/11 05:11:43 UTC
svn commit: r1407909 - /chemistry/cmislib/trunk/src/cmislib/model.py
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):