From: Frederic Massart Date: Thu, 17 Apr 2014 06:54:15 +0000 (+0800) Subject: Added new plugin type availability, and tool subtype X-Git-Tag: v1.2~13 X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=ce5fe892e5688b86365f54f1d20671d09877c7a5;p=mdk.git Added new plugin type availability, and tool subtype --- 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):