chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpo...@apache.org
Subject svn commit: r1794241 - in /chemistry/cmislib/trunk/src: cmislib/browser/binding.py tests/cmislibtest.py
Date Sun, 07 May 2017 18:05:40 GMT
Author: jpotts
Date: Sun May  7 18:05:40 2017
New Revision: 1794241

URL: http://svn.apache.org/viewvc?rev=1794241&view=rev
Log:
Remove getUnfiled from the browser binding as it is not part of the spec. Closes #CMIS-1011.

Modified:
    chemistry/cmislib/trunk/src/cmislib/browser/binding.py
    chemistry/cmislib/trunk/src/tests/cmislibtest.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=1794241&r1=1794240&r2=1794241&view=diff
==============================================================================
--- chemistry/cmislib/trunk/src/cmislib/browser/binding.py (original)
+++ chemistry/cmislib/trunk/src/cmislib/browser/binding.py Sun May  7 18:05:40 2017
@@ -1104,34 +1104,6 @@ class BrowserRepository(object):
                                 self,
                                 data=result)
 
-    def getUnfiledDocs(self, **kwargs):
-
-        """
-        Returns a ResultSet of :class:`CmisObject` objects that
-        are currently unfiled.
-
-        >>> rs = repo.getUnfiledDocs()
-        >>> len(rs.getResults())
-        2
-        >>> for doc in repo.getUnfiledDocs().getResults():
-        ...     doc.getTitle()
-        ...
-        u'sample-a.pdf'
-        u'sample-b.pdf'
-
-        These optional arguments are supported:
-         - folderId
-         - maxItems
-         - skipCount
-         - orderBy
-         - filter
-         - includeRelationships
-         - renditionFilter
-         - includeAllowableActions
-        """
-
-        pass
-
     def getObject(self,
                   objectId,
                   **kwargs):

Modified: chemistry/cmislib/trunk/src/tests/cmislibtest.py
URL: http://svn.apache.org/viewvc/chemistry/cmislib/trunk/src/tests/cmislibtest.py?rev=1794241&r1=1794240&r2=1794241&view=diff
==============================================================================
--- chemistry/cmislib/trunk/src/tests/cmislibtest.py (original)
+++ chemistry/cmislib/trunk/src/tests/cmislibtest.py Sun May  7 18:05:40 2017
@@ -375,40 +375,6 @@ class RepositoryTest(CmisTestBase):
             subFolder = self._repo.getObjectByPath(subFolderPath)
             self.assertEquals(len(subFolder.getChildren().getResults()), 1)
 
-    # getting unfiled documents may work for the atom pub binding for some servers
-    # but it isn't part of the spec so removing this test for now
-    '''
-    def testGetUnfiledDocs(self):
-        """Tests the repository's unfiled collection"""
-
-        if not self._repo.getCapabilities()['Unfiling']:
-            print 'Repo does not support unfiling, skipping'
-            return
-
-        # create a test folder and test doc
-        testFolder = self._testFolder.createFolder('unfile test')
-        newDoc = testFolder.createDocument('testdoc')
-
-        # make sure the new doc isn't in the unfiled collection
-        try:
-            rs = self._repo.getUnfiledDocs()
-            self.assertFalse(isInResultSet(rs, newDoc))
-        except NotSupportedException:
-            print 'This repository does not support read access to the unfiled collection...skipping'
-            return
-
-        # delete the test folder and tell it to unfile the testdoc
-        objId = newDoc.getObjectId()
-        testFolder.deleteTree(unfileObjects='unfile')
-
-        # grab the document by object ID
-        newDoc = self._repo.getObject(objId)
-
-        # the doc should now be in the unfiled collection
-        self.assertTrue(isInResultSet(self._repo.getUnfiledDocs(), newDoc))
-        self.assertEquals('testdoc', newDoc.getTitle())
-    '''
-
     # Create document without a parent folder is not yet implemented
     # def testCreateUnfiledDocument(self):
     #     '''Create a new unfiled document'''



Mime
View raw message