https://bugs.gpodder.org/show_bug.cgi?id=435
Justin Forest <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #431 is|0 |1 obsolete| | --- Comment #10 from Justin Forest <[email protected]> 2010-06-15 20:43:02 BST --- Created an attachment (id=505) --> (https://bugs.gpodder.org/attachment.cgi?id=505) user extensions v3 I made it a class which is instantiated in gui.py, but instead of passing it down I stored it in the gpodder.user_extensions variable, next to ui_folders etc. To call the extensions the following syntax is used: gpodder.user_extensions.call('channel_updated', self) The extensions are currently used by PodcastChannel and PodcastEpisode, which are instantiated 11 and 4 times respectively. I don't think it's a good idea to touch all these parts of the code. The gpodder module, however, is already imported almost everywhere, and not having to change any existing code while adding more hooks sound like a good idea to me. -- Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes. _______________________________________________ gPodder-Bugs mailing list [email protected] https://lists.berlios.de/mailman/listinfo/gpodder-bugs
