From f700314904d739221ddf3173a9959275fc22c3f2 Mon Sep 17 00:00:00 2001 From: Eugen Ciur Date: Mon, 11 May 2020 09:05:50 +0200 Subject: [PATCH] design for storage interface --- mglib/storage.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/mglib/storage.py b/mglib/storage.py index 219cde3..e1972e5 100644 --- a/mglib/storage.py +++ b/mglib/storage.py @@ -87,6 +87,39 @@ class Storage: self.path(_path) ) + def delete_pages(self, doc_path, page_numers): + """ + Delets pages in the document pointed by doc_path. + doc_path is an instance of mglib.path.DocumentPath + + In case of success returns document's new version. + """ + pass + + def reoder_pages(self, doc_path, new_order): + """ + Reorders pages in the document pointed by doc_path. + doc_path is an instance of mglib.path.DocumentPath + + In case of success returns document's new version. + """ + pass + + def paste_pages( + self, + dest_doc_path, + src_doc_path, + dest_doc_is_new=False, + after_page_number=False, + before_page_number=False + ): + """ + Pastes pages in the document pointed by dest_doc_path + from src_doc_path. Both dest and src are instances of + mglib.path.DocumentPath + """ + pass + class FileSystemStorage(Storage): pass