chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpo...@apache.org
Subject svn commit: r1776469 - in /chemistry/cmislib/trunk/src/cmislib: atompub/binding.py browser/binding.py domain.py
Date Thu, 29 Dec 2016 19:22:17 GMT
Author: jpotts
Date: Thu Dec 29 19:22:17 2016
New Revision: 1776469

URL: http://svn.apache.org/viewvc?rev=1776469&view=rev
Log:
Allow access to repository from a CmisObject to close #CMIS-1002

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

Modified: chemistry/cmislib/trunk/src/cmislib/atompub/binding.py
URL: http://svn.apache.org/viewvc/chemistry/cmislib/trunk/src/cmislib/atompub/binding.py?rev=1776469&r1=1776468&r2=1776469&view=diff
==============================================================================
--- chemistry/cmislib/trunk/src/cmislib/atompub/binding.py (original)
+++ chemistry/cmislib/trunk/src/cmislib/atompub/binding.py Thu Dec 29 19:22:17 2016
@@ -913,12 +913,21 @@ class AtomPubCmisObject(CmisObject):
                     if relAttr == rel:
                         return linkElement.attributes['href'].value
 
+    def getRepository(self):
+
+        """
+        Returns the object's repository
+        """
+
+        return self._repository
+
     allowableActions = property(getAllowableActions)
     name = property(getName)
     id = property(getObjectId)
     properties = property(getProperties)
     title = property(getTitle)
     ACL = property(getACL)
+    repository = property(getRepository)
 
 
 class AtomPubRepository(object):

Modified: chemistry/cmislib/trunk/src/cmislib/browser/binding.py
URL: http://svn.apache.org/viewvc/chemistry/cmislib/trunk/src/cmislib/browser/binding.py?rev=1776469&r1=1776468&r2=1776469&view=diff
==============================================================================
--- chemistry/cmislib/trunk/src/cmislib/browser/binding.py (original)
+++ chemistry/cmislib/trunk/src/cmislib/browser/binding.py Thu Dec 29 19:22:17 2016
@@ -556,11 +556,20 @@ class BrowserCmisObject(object):
         else:
             raise NotSupportedException
 
+    def getRepository(self):
+
+        """
+        Returns the object's repository
+        """
+
+        return self._repository
+
     allowableActions = property(getAllowableActions)
     name = property(getName)
     id = property(getObjectId)
     properties = property(getProperties)
     ACL = property(getACL)
+    repository = property(getRepository)
 
 
 class BrowserRepository(object):

Modified: chemistry/cmislib/trunk/src/cmislib/domain.py
URL: http://svn.apache.org/viewvc/chemistry/cmislib/trunk/src/cmislib/domain.py?rev=1776469&r1=1776468&r2=1776469&view=diff
==============================================================================
--- chemistry/cmislib/trunk/src/cmislib/domain.py (original)
+++ chemistry/cmislib/trunk/src/cmislib/domain.py Thu Dec 29 19:22:17 2016
@@ -291,12 +291,21 @@ class CmisObject(object):
 
         pass
 
+    def getRepository(self):
+
+        """
+        Returns the object's repository
+        """
+
+        pass
+
     allowableActions = property(getAllowableActions)
     name = property(getName)
     id = property(getObjectId)
     properties = property(getProperties)
     title = property(getTitle)
     ACL = property(getACL)
+    repository = property(getRepository)
 
 
 class Repository(object):



Mime
View raw message