Remove getUnfiled from the browser binding as it is not part of the spec. Closes #CMIS-1011.
git-svn-id: https://svn.apache.org/repos/asf/chemistry/cmislib/trunk@1794241 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/cmislib/browser/binding.py b/src/cmislib/browser/binding.py
index eb0c5c7..d980d54 100644
--- a/src/cmislib/browser/binding.py
+++ b/src/cmislib/browser/binding.py
@@ -1104,34 +1104,6 @@
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):
diff --git a/src/tests/cmislibtest.py b/src/tests/cmislibtest.py
index 3c2be3e..e7f19cd 100644
--- a/src/tests/cmislibtest.py
+++ b/src/tests/cmislibtest.py
@@ -375,40 +375,6 @@
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'''