WIP: start implementing server-initiated restoration cancelation

This commit is contained in:
ziirish 2016-03-07 21:41:12 +01:00
parent 33d0d96796
commit 45b6abeecd
2 changed files with 34 additions and 2 deletions

View file

@ -1272,10 +1272,17 @@ class Parser(BUIparser):
key = key.strip()
return key not in keys
def cancel_restore(self, name=None):
"""See :func:`burpui.misc.parser.interface.BUIparser.cancel_restore`"""
return
def read_restore(self, name=None):
"""See :func:`burpui.misc.parser.interface.BUIparser.read_restore`"""
return
def server_initiated_restoration(
self, name=None, backup=None, files=None,
strip=None, force=None, prefix=None, restoreto=None
):
strip=None, force=None, prefix=None, restoreto=None):
"""See :func:`burpui.misc.parser.interface.BUIparser.server_initiated_restoration`"""
self.read_server_conf()

View file

@ -204,6 +204,31 @@ class BUIparser(BUIlogging):
"""
raise NotImplementedError("Sorry, the current Parser does not implement this method!") # pragma: no cover
@abstractmethod
def cancel_restore(self, name=None):
""":func:`burpui.misc.parser.interface.BUIparser.cancel_restore called
by ... in order to cancel a server-initiated restoration.
:param name: Client name
:type name: str
:returns: A list of notifications to return to the UI (success or
failure)
"""
raise NotImplementedError("Sorry, the current Parser does not implement this method!") # pragma: no cover
@abstractmethod
def read_restore(self, name=None):
""":func:`burpui.misc.parser.interface.BUIparser.read_restore called
by ... in order to read a server-initiated restoration file.
:param name: Client name
:type name: str
:returns: A dict describing the content of the file
"""
raise NotImplementedError("Sorry, the current Parser does not implement this method!") # pragma: no cover
@abstractmethod
def server_initiated_restoration(self, name=None, backup=None, files=None, strip=None, force=None, prefix=None):
""":func:`burpui.misc.parser.interface.BUIparser.server_initiated_restoration`