projects
/
mdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
394f5ad
)
Added new plugin type availability, and tool subtype
author
Frederic Massart
<fred@moodle.com>
Thu, 17 Apr 2014 06:54:15 +0000
(14:54 +0800)
committer
Frederic Massart
<fred@moodle.com>
Thu, 17 Apr 2014 06:54:47 +0000
(14:54 +0800)
lib/plugins.py
patch
|
blob
|
history
diff --git
a/lib/plugins.py
b/lib/plugins.py
index
546d0fb
..
51d702d
100644
(file)
--- 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):