Exemplo n.º 1
0
 def test_10_get_folder_changes(self):
     folder = self.__class__.target_list.rootFolder.folders.get_by_url(
         self.__class__.target_folder_name)
     changes = folder.list_item_all_fields.get_changes(
         ChangeQuery(item=True)).execute_query()
     self.assertIsInstance(changes, ChangeCollection)
     self.assertGreater(len(changes), 0)
    def get_changes(self, query=None):
        """Returns the collection of changes from the change log that have occurred within the ListItem,
           based on the specified query.

        :param office365.sharepoint.changeQuery.ChangeQuery query: Specifies which changes to return
        """
        if query is None:
            query = ChangeQuery(item=True)
        changes = ChangeCollection(self.context)
        qry = ServiceOperationQuery(self, "getChanges", None, query, "query", changes)
        self.context.add_query(qry)
        return changes
 def test_6_get_content_types_changes(self):
     changes = self.client.web.get_changes(
         ChangeQuery(content_type=True)).execute_query()
     self.assertGreater(len(changes), 0)
 def test_1_get_web_changes(self):
     changes = self.client.site.root_web.get_changes(query=ChangeQuery(
         web=True)).execute_query()
     self.assertIsInstance(changes, ChangeCollection)
 def test_2_get_site_changes(self):
     target_list = self.client.site.root_web.default_document_library()
     changes = target_list.get_changes(query=ChangeQuery(
         site=True)).execute_query()
     self.assertIsInstance(changes, ChangeCollection)
 def test6_get_user_changes(self):
     changes = self.client.site.get_changes(
         ChangeQuery(user=True)).execute_query()
     self.assertGreater(len(changes), 0)
Exemplo n.º 7
0
 def test7_get_view_changes(self):
     changes = self.client.site.get_changes(
         ChangeQuery(view=True)).execute_query()
     self.assertGreater(len(changes), 0)
 def test_16_get_folder_changes(self):
     changes = self.__class__.target_file.listItemAllFields.get_changes(ChangeQuery(item=True)).execute_query()
     self.assertGreater(len(changes), 0)