]> git.ipfire.org Git - pakfire.git/commitdiff
Remove plugins (we don't need it).
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Apr 2011 15:20:50 +0000 (17:20 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Apr 2011 15:20:50 +0000 (17:20 +0200)
pakfire/plugins/__init__.py [deleted file]
pakfire/plugins/base.py [deleted file]
po/POTFILES.in
po/pakfire.pot
setup.py

diff --git a/pakfire/plugins/__init__.py b/pakfire/plugins/__init__.py
deleted file mode 100644 (file)
index ab17879..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/python
-
-import logging
-
-class Plugins(object):
-       allowed_methods = ["init",]
-
-       def __init__(self, pakfire):
-               self.pakfire = pakfire
-
-               self.__plugins = []
-
-       def register_plugin(self, plugin):
-               # Create instance of plugin
-               plugin = plugin(self.pakfire)
-
-               self.__plugins.append(plugin)
-
-       def run(self, method, *args, **kwargs):
-               if not method in self.allowed_methods:
-                       raise Exception, "Unallowed method called '%s'" % method
-
-               logging.debug("Running plugin method '%s'" % method)
-
-               for plugin in self.__plugins:
-                       func = getattr(plugin, method, None)
-                       if not func:
-                               continue
-
-                       func(*args, **kwargs)
diff --git a/pakfire/plugins/base.py b/pakfire/plugins/base.py
deleted file mode 100644 (file)
index beb8bf9..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/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
index ee615c0db6462b9b35e59c4fde2de8151cc912a4..1a1127a0cf4272aac9c4f50b9ac3c0b1c7f9bd52 100644 (file)
@@ -21,8 +21,6 @@ pakfire/packages/packager.py
 pakfire/packages/source.py
 pakfire/packages/util.py
 pakfire/packages/virtual.py
-pakfire/plugins/base.py
-pakfire/plugins/__init__.py
 pakfire/repository/base.py
 pakfire/repository/cache.py
 pakfire/repository/database.py
index 9c78be8d0a64ae0ffc38526e704e8d899d53b1a6..cd8dede65d37d3b9cfcd9704774a3e14385536e8 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-09 17:16+0200\n"
+"POT-Creation-Date: 2011-04-09 17:20+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 808a65d631f9acf8aee3577bf9d4e3414b647fd9..601ec38530c6301a214cdd3cc50d0acdf8c0818c 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,6 @@ setup(
        packages = [
                "pakfire",
                "pakfire.packages",
-               "pakfire.plugins",
                "pakfire.server",
                "pakfire.repository",
        ],