+++ /dev/null
-#!/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)
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
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"