summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugin/base.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-02-13 16:08:08 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-02-14 14:57:08 -0500
commitb7995e7b2cb8e527ab8bb8bd3f01c8fb2fce736a (patch)
tree86f30e36f79b286d5963536965c04fbed94502f9 /src/lib/Bcfg2/Server/Plugin/base.py
parent43984bc5ebc59bd8c5890ed6ba3de162e6698dcc (diff)
downloadbcfg2-b7995e7b2cb8e527ab8bb8bd3f01c8fb2fce736a.tar.gz
bcfg2-b7995e7b2cb8e527ab8bb8bd3f01c8fb2fce736a.tar.bz2
bcfg2-b7995e7b2cb8e527ab8bb8bd3f01c8fb2fce736a.zip
extended usage of Executor class, added client-side timeout options
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugin/base.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugin/base.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lib/Bcfg2/Server/Plugin/base.py b/src/lib/Bcfg2/Server/Plugin/base.py
index e74909ee9..25a687874 100644
--- a/src/lib/Bcfg2/Server/Plugin/base.py
+++ b/src/lib/Bcfg2/Server/Plugin/base.py
@@ -2,6 +2,7 @@
import os
import logging
+from Bcfg2.Utils import ClassName
class Debuggable(object):
@@ -59,18 +60,6 @@ class Debuggable(object):
self.logger.error(message)
-class ClassName(object):
- """ This very simple descriptor class exists only to get the name
- of the owner class. This is used because, for historical reasons,
- we expect every plugin to have a ``name`` attribute that is in
- almost all cases the same as the ``__class__.__name__`` attribute
- of the plugin object. This makes that more dynamic so that each
- plugin isn't repeating its own name. """
-
- def __get__(self, inst, owner):
- return owner.__name__
-
-
class Plugin(Debuggable):
""" The base class for all Bcfg2 Server plugins. """