Added new plugin type availability, and tool subtype
authorFrederic Massart <fred@moodle.com>
Thu, 17 Apr 2014 06:54:15 +0000 (14:54 +0800)
committerFrederic Massart <fred@moodle.com>
Thu, 17 Apr 2014 06:54:47 +0000 (14:54 +0800)
lib/plugins.py

index 546d0fb..51d702d 100644 (file)
@@ -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):