masteroftime/Python-Plugin-Loader — pull request #7 by senritsu (2012-04-27 19:39:57+00:00)
Title: Workaround for bound methods

Hey,

I did a quick workaround to be able to use the decorators on bound methods, using an additional boolean argument for event decorators (after priority), and the additional keyword argument "deferred = True" for command decorators, to defer the event registrations for those functions until instances have been created. The registration has to be manually triggered via "hook.register(self)" from the instance, for example at the end of __init__.

It's probably not the most elegant way, but for now it works :)

zaph34r/senritsu