Commit Graph

12 Commits

Author SHA1 Message Date
Chris Jones
68ade515eb Add support for disabling modules and add CustomCommandsMenu and TestPlugin to it 2010-01-06 00:27:58 +00:00
Chris Jones
0b5cf876ba Move the base plugin classes to plugin.py for cleaner importing in additional plugins 2010-01-05 22:22:13 +00:00
Chris Jones
8141a3496d call sys.exit() with doctest failure results 2009-12-30 11:26:22 +00:00
Chris Jones
a13581a4c8 Handle exceptions in a way that doesn't make python 2.5 really angry 2009-12-30 01:50:47 +00:00
Chris Jones
60a1b085b4 Add a utility function for finding ~/.config/terminator and use it in PLuginRegistry to load plugins from the user's homedir 2009-12-24 21:35:07 +00:00
Chris Jones
9ce380ef90 port to new borg __init__() 2009-12-22 00:25:25 +00:00
Chris Jones
a6a1acd26d Clear up the position re licencing of the two external sources of code in our refactoring 2009-12-19 15:07:22 +00:00
Chris Jones
48e8637ca5 Add a FIXME 2009-12-18 09:24:23 +00:00
Chris Jones
603da6ec16 Since PluginRegistry is a borg we can easily track if we have been loaded before and if so, not load plugins again. 2009-12-17 23:16:42 +00:00
Chris Jones
01bb454d90 stop (ab)using __subclasses__ isntead interrogating the imported plugin modules for a predefined list of the plugin classes they contain, and always instantiate them when they are imported. Add a test plugin only useful for doctest 2009-12-17 13:51:55 +00:00
Chris Jones
6088084fdf handle import failures and add some very borked doctesting 2009-12-17 12:54:42 +00:00
Chris Jones
2660d0795f Add a first run at a plugin system 2009-12-17 01:07:01 +00:00