예제 #1
0
 def add(self, folder_url):
     from office365.sharepoint.folder import Folder
     folder = Folder(self.context)
     folder.set_property("ServerRelativeUrl", folder_url)
     qry = ClientQuery(self.url, ActionType.CreateEntry, folder.convert_to_payload())
     self.context.add_query(qry, folder)
     return folder
 def add(self, folder_url):
     folder = Folder(self.context)
     self.add_child(folder)
     folder.set_property("ServerRelativeUrl", folder_url)
     qry = CreateEntityQuery(self, folder, folder)
     self.context.add_query(qry)
     return folder
예제 #3
0
 def add(self, server_relative_url):
     """Adds the folder that is located at the specified URL to the collection.
     :type server_relative_url: str
     """
     folder = Folder(self.context)
     self.add_child(folder)
     folder.set_property("ServerRelativeUrl", server_relative_url)
     qry = CreateEntityQuery(self, folder, folder)
     self.context.add_query(qry)
     return folder
예제 #4
0
 def add(self, folder_url):
     folder = Folder(self.context)
     folder.set_property("ServerRelativeUrl", folder_url)
     qry = ClientQuery(self.resourceUrl, HttpMethod.Post, folder)
     self.context.add_query(qry, folder)
     return folder
 def add(self, folder_url):
     folder = Folder(self.context)
     folder.set_property("ServerRelativeUrl", folder_url)
     qry = ClientQuery(self.resource_url, ActionType.CreateEntity, folder)
     self.context.add_query(qry, folder)
     return folder