示例#1
0
 def delete_writer_session(self):
     if self.session_delete_url is not None:
         self.api_end_point = self.session_delete_url
     else:
         self.api_end_point = ZOIConfigUtil.get_writer_api_base_url() + "session/" + self.session_id
     try:
         from controllers.Handler import ZOIAPIHandler
     except ImportError:
         from .Handler import ZOIAPIHandler
     return ZOIAPIHandler.get_instance(self).delete_request_handler()
示例#2
0
 def delete_document(self, service_id=None):
     if self.document_delete_url is not None:
         self.api_end_point = self.document_delete_url
     else:
         if service_id == 1:
             self.api_end_point = ZOIConfigUtil.get_writer_api_base_url() + "document/" + self.document_id
         elif service_id == 2:
             self.api_end_point = ZOIConfigUtil.get_sheet_api_base_url() + "spreadsheet/" + self.document_id
         elif service_id == 3:
             self.api_end_point = ZOIConfigUtil.get_show_api_base_url() + "presentation/" + self.document_id
         else:
             return
     try:
         from controllers.Handler import ZOIAPIHandler
     except ImportError:
         from .Handler import ZOIAPIHandler
     return ZOIAPIHandler.get_instance(self).delete_request_handler()
示例#3
0
 def __init__(self):
     super().__init__()
     self.api_end_point = ZOIConfigUtil.get_writer_api_base_url() + "document/compare"
示例#4
0
    def __init__(self, is_create):
        super().__init__()
        self.api_end_point = ZOIConfigUtil.get_writer_api_base_url() + "document"

        self.isCreate = is_create
示例#5
0
 def __init__(self):
     super().__init__()
     self.api_end_point = ZOIConfigUtil.get_writer_api_base_url() + "fields"
示例#6
0
 def __init__(self):
     super().__init__(is_create=False)
     self.api_end_point = ZOIConfigUtil.get_writer_api_base_url() + "template"
     self.isCreateTemplate = True