summaryrefslogtreecommitdiff
path: root/plugins/python/abackup
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-05-17 18:05:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-05-17 18:05:48 (GMT)
commitd110791309783e6e30df837a81cf8e14e1ac9641 (patch)
tree75e65909e080cc3ace578c7beb6f0bdae6dc18c1 /plugins/python/abackup
parentf3e136eab9fd6adcb51988c9f70ca7f35552abc4 (diff)
Updated the plugin system and its Python documentation.
Diffstat (limited to 'plugins/python/abackup')
-rw-r--r--plugins/python/abackup/plugin.py23
1 files changed, 7 insertions, 16 deletions
diff --git a/plugins/python/abackup/plugin.py b/plugins/python/abackup/plugin.py
index d8f52b1..aea9a9c 100644
--- a/plugins/python/abackup/plugin.py
+++ b/plugins/python/abackup/plugin.py
@@ -34,27 +34,18 @@ from .password import PasswordReader
class AndroidBackupPlugin(PluginModule):
"""Open and process Android backup files."""
+ _name = 'AndroidBackup'
+ _desc = 'Add suppport for the Android backup file format'
+ _version = '0.1'
+ _url = 'https://www.chrysalide.re/'
- def __init__(self):
- """Initialize the plugin for Chrysalide."""
+ _actions = ( PluginModule.PluginAction.CONTENT_EXPLORER, )
- interface = {
- 'name' : 'AndroidBackup',
- 'desc' : 'Add suppport for the Android backup file format',
- 'version' : '0.1',
-
- 'actions' : ( PluginModule.PGA_CONTENT_EXPLORER, )
-
- }
-
- super(AndroidBackupPlugin, self).__init__(**interface)
-
-
- def handle_binary_content(self, action, content, wid, status):
+ def _handle_binary_content(self, action, content, wid, status):
"""Process an operation on a binary content."""
- assert(action == PluginModule.PGA_CONTENT_EXPLORER)
+ assert(action == PluginModule.PluginAction.CONTENT_EXPLORER)
try:
backup = AndroidBackup(content)