djangosnippets.org: Latest snippets posted by Gulopinehttp://djangosnippets.org/users/Gulopine/2008-01-10T14:27:47.105396-06:00GulopinePlugin Framework
2008-01-10T14:27:47.105396-06:00Gulopinehttp://djangosnippets.org/snippets/542/<p>This is a very basic -- yet fully functional -- framework for producing a loosely coupled plugin architecture. Full details of its use can be found <a href="http://gulopine.gamemusic.org/2008/jan/10/simple-plugin-framework/">on my blog</a>, but the basics are listed below.</p>
<h2>Defining a mount point for plugins</h2>
<pre><code>class ActionProvider:
__metaclass__ = PluginMount
</code></pre>
<h2>Implementing plugins</h2>
<pre><code>class …</code></pre>
Freely redistributable