From ce5fe892e5688b86365f54f1d20671d09877c7a5 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Thu, 17 Apr 2014 14:54:15 +0800 Subject: [PATCH] Added new plugin type availability, and tool subtype --- lib/plugins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugins.py b/lib/plugins.py index 546d0fb..51d702d 100644 --- a/lib/plugins.py +++ b/lib/plugins.py @@ -42,6 +42,7 @@ class PluginManager(object): _pluginTypesPath = { 'mod': '/mod', 'auth': '/auth', + 'availability': '/availability/condition', 'calendartype': '/calendar/type', 'enrol': '/enrol', 'message': '/message/output', @@ -70,7 +71,7 @@ class PluginManager(object): 'theme': '/theme', 'local': '/local' } - _supportSubtypes = ['mod', 'editor', 'local'] + _supportSubtypes = ['mod', 'editor', 'local', 'tool'] @classmethod def extract(cls, f, plugin, M, override=False): -- 2.11.0