summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2008-06-30 21:06:04 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2008-07-15 12:28:54 +0200
commitf701319cdc4ceffaaf2faea551da46b03fa2bdfc (patch)
treee3cb7cb97cad09488151dd649c4578adc828da33
parent0ba5a4897159e5e598abb2ef9491121cb7bed807 (diff)
downloadnbb-f701319cdc4ceffaaf2faea551da46b03fa2bdfc.tar.gz
nbb-f701319cdc4ceffaaf2faea551da46b03fa2bdfc.tar.xz
nbb-f701319cdc4ceffaaf2faea551da46b03fa2bdfc.zip
Update docstring with new module name
-rw-r--r--src/nbblib/plugins.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nbblib/plugins.py b/src/nbblib/plugins.py
index 63fea37..55251ba 100644
--- a/src/nbblib/plugins.py
+++ b/src/nbblib/plugins.py
@@ -1,5 +1,5 @@
"""\
-newplugins.py - generic plugin system
+plugins.py - generic plugin system
Basic plugin architecture (metaclass tricks) by Marty Alchin from
http://gulopine.gamemusic.org/2008/jan/10/simple-plugin-framework/
@@ -10,14 +10,14 @@ GenericPluginMeta slightly modified to
Extended by GenericDetectPlugin to
- support auto-detection of the adequate plugin
-Example usage of the newplugins module:
+Example usage of the plugins module:
-np = __import__(newplugins)
+p = __import__(plugins)
Example non-auto-detection plugin:
class NonDetectPluginType(object):
- __metaclass__ = np.GenericPluginMeta
+ __metaclass__ = p.GenericPluginMeta
class PluginA(NonDetectPluginType):
name = "PA"
@@ -26,8 +26,8 @@ class PluginB(NonDetectPluginType):
Example auto-detection plugin:
-class MyPluginType(np.GenericDetectPlugin):
- __metaclass__ = np.GenericPluginMeta
+class MyPluginType(p.GenericDetectPlugin):
+ __metaclass__ = p.GenericPluginMeta
# The calling convention for constructor
# detect(context, <mystuff...>)