summaryrefslogtreecommitdiff
path: root/plugins/python
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/python')
-rw-r--r--plugins/python/apkfiles/__init__.py4
-rw-r--r--plugins/python/apkfiles/apkfiles.py27
2 files changed, 27 insertions, 4 deletions
diff --git a/plugins/python/apkfiles/__init__.py b/plugins/python/apkfiles/__init__.py
index 2ebf824..7da894e 100644
--- a/plugins/python/apkfiles/__init__.py
+++ b/plugins/python/apkfiles/__init__.py
@@ -1,2 +1,4 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
-from apkfiles import ApkFiles as apkfiles
+from apkfiles.apkfiles import ApkFiles as AutoLoad
diff --git a/plugins/python/apkfiles/apkfiles.py b/plugins/python/apkfiles/apkfiles.py
index 7c05ca9..b85b0c8 100644
--- a/plugins/python/apkfiles/apkfiles.py
+++ b/plugins/python/apkfiles/apkfiles.py
@@ -1,15 +1,36 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
-from pychrysalide import Plugin
-
+from pychrysalide import PluginModule
import zipfile
-class ApkFiles(Plugin):
+class ApkFiles(PluginModule):
"""Open and process APK files."""
+ def get_interface(self):
+ """Provide the full plugin description."""
+
+ desc = {
+
+ 'name' : 'Welcome',
+ 'desc' : 'Add suppport for the APK file format',
+ 'version' : '0.1',
+
+ 'actions' : [ PluginModule.PGA_PLUGIN_INIT ]
+
+ }
+
+ return desc
+
+
+ def init(self, ref):
+ """Initialise l'extension."""
+
+ return True
+
+
def get_action(self):
"""Register the plugin for given actions."""