示例#1
0
    def edit_document(self):
        try:
            from controllers.Handler import ZOIAPIHandler
        except ImportError:
            from .Handler import ZOIAPIHandler

        return ZOIAPIHandler.get_instance(self).writer_request_handler()
示例#2
0
 def convert_document(self):
     try:
         from controllers.Handler import ZOIAPIHandler
     except ImportError:
         from .Handler import ZOIAPIHandler
     if self.isDocument or self.isURL:
         return ZOIAPIHandler.get_instance(self).writer_request_handler()
示例#3
0
    def create_document(self):
        if not self.isCreateTemplate:
            try:
                from controllers.Handler import ZOIAPIHandler
            except ImportError:
                from .Handler import ZOIAPIHandler

            return ZOIAPIHandler.get_instance(self).writer_request_handler()
示例#4
0
 def watermark_document(self):
     try:
         from controllers.Handler import ZOIAPIHandler
     except ImportError:
         from .Handler import ZOIAPIHandler
     if self.isDocument or self.isURL:
         return ZOIAPIHandler.get_instance(self).writer_request_handler()
     else:
         return "No Supported Document Uploaded to edit!"
示例#5
0
 def delete_show_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_show_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()
示例#6
0
 def delete_sheet_document(self):
     if self.document_delete_url is not None:
         self.api_end_point = self.document_delete_url
     else:
         self.api_end_point = ZOIConfigUtil.get_sheet_api_base_url() + "spreadsheet/" + self.document_id
     try:
         from controllers.Handler import ZOIAPIHandler
     except ImportError:
         from .Handler import ZOIAPIHandler
     return ZOIAPIHandler.get_instance(self).delete_request_handler()
示例#7
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()
示例#8
0
 def convert_presentation(self):
     try:
         from controllers.Handler import ZOIAPIHandler
     except ImportError:
         from .Handler import ZOIAPIHandler
     return ZOIAPIHandler.get_instance(self).sheet_show_request_handler()
示例#9
0
 def preview_spreadsheet(self):
     try:
         from controllers.Handler import ZOIAPIHandler
     except ImportError:
         from .Handler import ZOIAPIHandler
     return ZOIAPIHandler.get_instance(self).sheet_show_request_handler()
示例#10
0
 def merge_and_download(self):
     try:
         from controllers.Handler import ZOIAPIHandler
     except ImportError:
         from .Handler import ZOIAPIHandler
     return ZOIAPIHandler.get_instance(self).writer_request_handler()
示例#11
0
 def create_template(self):
     try:
         from controllers.Handler import ZOIAPIHandler
     except ImportError:
         from .Handler import ZOIAPIHandler
     return ZOIAPIHandler.get_instance(self).writer_request_handler()