1
2
3
4
5
6
7
8
9
10
11
12
13
|
# description: list available plugins for wiki
from config import *
import pluginconf
pluginconf.module_base = "config"
pluginconf.plugin_base = ["channels", "contrib"]#, conf.share+"/channels", conf.dir+"/plugins"]
for name,e in pluginconf.all_plugin_meta().items():
if "title" in e:
try:
print "| [{title}]({url}) | **{version}** | {type} | {category} | *{priority}* | {description} |".format(**e)
except Exception, e:
print "ERROR*** ", name, e
|
>
>
>
>
>
>
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# description: list available plugins for wiki
from config import *
from base64 import b64decode
import pluginconf
pluginconf.module_base = "config"
pluginconf.plugin_base = ["channels", "contrib"]#, conf.share+"/channels", conf.dir+"/plugins"]
for name,e in pluginconf.all_plugin_meta().items():
# print table
if "title" in e:
try:
print "| [{title}]({url}) | **{version}** | {type} | {category} | *{priority}* | {description} |".format(**e)
except Exception, e:
print "ERROR*** ", name, e
# extract icon
if False and "png" in e:
with open("help/img/%s_%s.png" % (e["type"], name), "wb") as f:
f.write(b64decode(e["png"]))
|