From f701319cdc4ceffaaf2faea551da46b03fa2bdfc Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Mon, 30 Jun 2008 21:06:04 +0200 Subject: Update docstring with new module name --- src/nbblib/plugins.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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, ) -- cgit