Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-12-27 | Plugins: use import_module for module in poezio_plugins | mathieui | |
And do not rely on the "module name" to index the plugins, use the intended plugin name instead. | |||
2019-08-22 | Adapt the plugin safety metaclass for async funcs | mathieui | |
2019-06-22 | Rework priority handling for events | Maxime “pep” Buquet | |
Introduce the concept of priority for event handlers, instead of the position parameter. The new `priority` parameter replacing `position` should be an integer between 0 and 100. It defaults to 50. The previous `position` parameter was only used to insert at a certain position in the list of handlers (for this particular event). No reference of it was kept, which means that it was not possible to ensure an event was called in the position is was supposed to be. I am now using per-event dicts, containing priority buckets (lists) of handlers. I am using OrderedDicts to make it easier to loop through all of the handlers, as insertion happens less often than reading. I was also suggested using bisect with a simple list of tuples (priority, handler) per event, but bisect tries to compare bound methods, which is obviously not possible. Maybe it would be interesting to find a way use this method instead of OrderedDict as that might be less resource consuming. This said, I don't think this part of poezio is a bottleneck at all, so maybe this is just fine as is. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net> | |||
2018-08-09 | Remove the GPG plugin | mathieui | |
It’s broken and nobody is using it as far as I know. | |||
2018-08-08 | timed_events, plugin: Remove some DeprecationWarning on invalid escapes in ↵ | Emmanuel Gil Peyrot | |
docstrings. | |||
2018-07-21 | Update poezio for the new tabs module | mathieui | |
2018-07-14 | Stop making classes inherit from object. | Emmanuel Gil Peyrot | |
2018-07-08 | Fix loading plugins. | Emmanuel Gil Peyrot | |
2018-07-08 | plugin: Use the provided pathlib.Path. | Emmanuel Gil Peyrot | |
2017-11-12 | yapf -ir | mathieui | |
2016-12-26 | Add missing message types (fix #3271) | mathieui | |
Which were being filtered by the information popup filter | |||
2016-06-30 | Absolute imports everywhere | mathieui | |
2016-06-27 | Make all relative imports explicit. | Emmanuel Gil Peyrot | |
2016-06-11 | Move the src directory to poezio, for better cython compatibility. | Emmanuel Gil Peyrot | |