https://bugs.gpodder.org/show_bug.cgi?id=435

Justin Forest <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #301 is|0                           |1
           obsolete|                            |

--- Comment #6 from Justin Forest <[email protected]> 2010-02-16 08:32:05 
GMT ---
Created an attachment (id=431)
 --> (https://bugs.gpodder.org/attachment.cgi?id=431)
user extensions v2

Thomas, I couldn't quite figure out how to use gpodder.api in this situation,
because it looks to me like it's not used by gPodder itself. However, I
reworked the code to minimize the footprint and make extensions easier to
write.

First, instead of a single $GPODDER_HOME/user.py file there can be many
extensions now, located in $GPODDER_HOME/extensions/*.py, which makes them
similar to plugins. The only real difference is that plugins are loaded as
defined by GPODDER_PLUGINS, while extensions are all loaded.

Second, the extension code is isolated inside `hooks', a callable which returns
an object with appropriate methods. This makes it possible to merge extensions
with plugins without even rewriting them. For example, you can just copy
soundcloud.py to extensions and it should work. I have not tested this, though.

Exceptions in extensions are handled and logged.

The patch is against revision 356baa39.

-- 
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

Reply via email to