diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-04 17:23:13 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-04 17:23:13 +0100 |
commit | 18466eb7f8f3cd4ca9a0824074d2ff454939fce6 (patch) | |
tree | f22c67aab99d500581e73d5ad555d2d70c2a2bd2 /module/plugins/Base.py | |
parent | fs_encode fix (diff) | |
download | pyload-18466eb7f8f3cd4ca9a0824074d2ff454939fce6.tar.xz |
some fixes
Diffstat (limited to 'module/plugins/Base.py')
-rw-r--r-- | module/plugins/Base.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/module/plugins/Base.py b/module/plugins/Base.py index 0ad0d5caa..1477356ea 100644 --- a/module/plugins/Base.py +++ b/module/plugins/Base.py @@ -40,7 +40,7 @@ class Base(object): __pattern__ = r"" #: Config definition: list of (name, type, verbose_name, default_value) or #: (name, type, verbose_name, short_description, default_value) - __config__ = tuple() + __config__ = list() #: Short description, one liner __description__ = "" #: More detailed text @@ -68,9 +68,17 @@ class Base(object): self.log = core.log #: core config self.config = core.config + #: :class:`EventManager` + self.evm = core.eventManager + #: :class:`InteractionManager` + self.im = core.interActionManager - #log functions def logInfo(self, *args, **kwargs): + """ Print args to log at specific level + + :param args: Arbitary object which should be logged + :param kwargs: sep=(how to seperate arguments), default = " | " + """ self._log("info", *args, **kwargs) def logWarning(self, *args, **kwargs): |