shotgunsoftware/shotgunEvents — pull request #26 by digisteph (2012-12-12 11:20:29+00:00)
Title: Shotgun plugin manager

Hello,
I modified the code to be able to control plugins from a Shotgun entity. This is done through a plugin added in the plugins folder, as I didn't want to change things a lot in the main shotgunEventDaemon.py code. It should still work as before, actually the pluginManager plugin is loaded with the 'standard' mechanism.

The main changes are
* Allow to run without a smtp server, which is handy when doing tests.
* Allow plugins to read settings from the main configuration file.
* Exposed some of the Engine functionalities to plugins and callbacks through Engine methods.
* Tried to made sure iterating over plugins is safe, even if the list is changed.
* Added a 'autoDiscover' setting to PluginCollection to disable automatic loading of new scripts.
* Added some debug print to understand why some events are ignored.

Happy to contribute and hope my changes are useful !