]> git.ipfire.org Git - pakfire.git/commitdiff
plugins: Add plugin skeleton.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Feb 2011 21:32:48 +0000 (22:32 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Feb 2011 21:32:48 +0000 (22:32 +0100)
pakfire/plugins/base.py [new file with mode: 0644]

diff --git a/pakfire/plugins/base.py b/pakfire/plugins/base.py
new file mode 100644 (file)
index 0000000..beb8bf9
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+
+class Plugin(object):
+       def __init__(self, pakfire):
+               self.pakfire = pakfire
+
+               self.init()
+
+       def init(self):
+               """
+                       Initialization function that it to be overwritten
+                       by the actual plugin.
+               """
+               pass