<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mailman.git, branch pluggable-components</title>
<subtitle>The GNU Mailing List manager.
</subtitle>
<id>https://git.neuromancer.sk/mailman.git/atom?h=pluggable-components</id>
<link rel='self' href='https://git.neuromancer.sk/mailman.git/atom?h=pluggable-components'/>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/'/>
<updated>2017-08-07T15:39:08Z</updated>
<entry>
<title>Fix coverage, deprecate, but run non-plugin (post|pre)_hooks.</title>
<updated>2017-08-07T15:39:08Z</updated>
<author>
<name>J08nY</name>
</author>
<published>2017-07-25T19:44:54Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=8addebbf9802e911c06f6a27b7ffff1e0f1d2e57'/>
<id>urn:sha1:8addebbf9802e911c06f6a27b7ffff1e0f1d2e57</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Ignore plugin started subprocesses in master main loop.</title>
<updated>2017-08-07T15:39:08Z</updated>
<author>
<name>J08nY</name>
</author>
<published>2017-06-28T12:28:21Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=cc99242654f2bcc11b3a6f124908de4b175c48d4'/>
<id>urn:sha1:cc99242654f2bcc11b3a6f124908de4b175c48d4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add new logger which plugins can use.</title>
<updated>2017-08-07T15:39:08Z</updated>
<author>
<name>J08nY</name>
</author>
<published>2017-06-27T14:42:33Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=7afec8975cb2c8fa1c6725176f52e100d396d1c4'/>
<id>urn:sha1:7afec8975cb2c8fa1c6725176f52e100d396d1c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't fail when plugins pre_hook or post_hook fails.</title>
<updated>2017-08-07T15:39:08Z</updated>
<author>
<name>J08nY</name>
</author>
<published>2017-06-19T13:04:12Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=0923455ba337fa734f89b3be72bb7fde061dcc91'/>
<id>urn:sha1:0923455ba337fa734f89b3be72bb7fde061dcc91</id>
<content type='text'>
 - Catches all exceptions raised when running a plugins (pre|post)
   _hooks. If its pre_hook raises an exception, the plugin is disabled
   and removed, so its post_hook will not be run and its components
   will not be loaded. If its post_hook raises an exception we just
   continue and hope for the best.
</content>
</entry>
<entry>
<title>Make config.plugin_configs yield a dict with plugin names.</title>
<updated>2017-08-07T15:39:08Z</updated>
<author>
<name>J08nY</name>
</author>
<published>2017-06-06T13:51:10Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=a2668307017e8b3a0c705e5cff49a8fa7dbeac7d'/>
<id>urn:sha1:a2668307017e8b3a0c705e5cff49a8fa7dbeac7d</id>
<content type='text'>
 - Allows to better loop over pluging configs and their names.
</content>
</entry>
<entry>
<title>Add optional external configuration to plugins.</title>
<updated>2017-08-07T15:39:08Z</updated>
<author>
<name>J08nY</name>
</author>
<published>2017-06-05T23:05:08Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=260733a13a0ad891e1b10836399dd02af7335fe0'/>
<id>urn:sha1:260733a13a0ad891e1b10836399dd02af7335fe0</id>
<content type='text'>
 - Adds an optional 'conriguration' option similar to the one in
   [mta] which plugins can use to load their specific configs from.
</content>
</entry>
<entry>
<title>Add REST-ability to plugins.</title>
<updated>2017-08-07T15:39:07Z</updated>
<author>
<name>J08nY</name>
</author>
<published>2017-06-01T18:53:53Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=a665dccf9404d6f95d8a4587f05d748b504e1f9d'/>
<id>urn:sha1:a665dccf9404d6f95d8a4587f05d748b504e1f9d</id>
<content type='text'>
 - Adds the rest_object method to the IPlugin interface. This method
   is called by the REST api to route requests to the plugin's REST
   api. All attributes are proxied, so the object becomes a true
   REST object in the ObjectRouter hierarchy. For example see the
   RESTExample and ExamplePlugin classes in mailman.testing.plugin.
   The plugin might return None from this method, in which case
   all calls to it's REST api route will return 404 NotFound.

 - Adds new routes to the REST api. For version &gt;= 3.1:

   - /3.1/plugins
     Returns a dictionary with plugin names as keys, and their configs
     as values.

   - /3.1/plugins/&lt;plugin_name&gt;
	 Proxies everything to plugin's rest_object, if plugin with such
     name exists and provides a non-null rest_object, else NotFound.
</content>
</entry>
<entry>
<title>Pretty print dicts in dump_json.</title>
<updated>2017-08-07T15:39:07Z</updated>
<author>
<name>J08nY</name>
</author>
<published>2017-06-03T21:00:48Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=1f1a35e7ccde1cfe239286a9a6333ebe8882d8f3'/>
<id>urn:sha1:1f1a35e7ccde1cfe239286a9a6333ebe8882d8f3</id>
<content type='text'>
 - Makes dump_json documentation helper recursively print dicts with
   indentation. So for example {'name': {'a':1, 'b':2}, 'other': test}
   becomes:

   name:
       a: 1
       b: 2
   other: test
</content>
</entry>
<entry>
<title>Add per-plugin hooks, add docs about plugins.</title>
<updated>2017-08-07T15:39:07Z</updated>
<author>
<name>J08nY</name>
</author>
<published>2017-06-01T13:46:48Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=0d4f53b51892866b5cc85ace229b23f4b9bac896'/>
<id>urn:sha1:0d4f53b51892866b5cc85ace229b23f4b9bac896</id>
<content type='text'>
 - Removes pre_hook, post_hook and ext_dir. With the latter being
   unused. Warns on startup if the hooks are present in config.

 - Adds IPlugin interface with pre_hook and post_hook methods.

 - Adds 'class' config parameter to plugins, which can be set to
   a class implementing the IPlugin interface, it will be
   initialized once on Mailman's startup, then before the DB
   setup the pre_hook will be run, after DB and other components
   the post_hook will be run. Plugin instances are stored in the
   config.plugins dict, with keys being their configuration section
   names.
</content>
</entry>
<entry>
<title>Add pluggable components.</title>
<updated>2017-08-07T15:39:07Z</updated>
<author>
<name>J08nY</name>
</author>
<published>2017-05-31T00:09:09Z</published>
<link rel='alternate' type='text/html' href='https://git.neuromancer.sk/mailman.git/commit/?id=38a86adcdb78c1944c26a5ab8deddff619b33bcf'/>
<id>urn:sha1:38a86adcdb78c1944c26a5ab8deddff619b33bcf</id>
<content type='text'>
 - Adds the notion of a 'plugin'.
   - A plugin has a package path and a flag specifying whether
     it's enabled or not.

 - Adds a find_pluggable_components function similar to the
   find_components one. This one dynamically searches not only
   the mailman package but all of plugins.
   - e.g. find_pluggable_components('rules', IRule) finds
     all IRule components in mailman.rules but also in
     example_plugin.rules for plugin names example_plugin.

 - Uses the find_pluggable_components function in place of
   find_components when searching for Rules, Handlers, Chains,
   EmailCommands, and Styles.
</content>
</entry>
</feed>
