-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.py
43 lines (37 loc) · 1.29 KB
/
install.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# installer for the 'Index' skin
# January 2025, Sally Woolrich
from weecfg.extension import ExtensionInstaller
#-------- extension info -----------
VERSION = "2.4"
NAME = 'Index'
DESCRIPTION = 'Generates a basic index.html for my live & test systems based on directoris in HTML_ROOT containing index.html. At present DokuWiki is an exception.'
AUTHOR = "Sally Woolrich"
AUTHOR_EMAIL = "shunracats <at> gmail.com"
#-------- main loader -----------
def loader():
return IndexInstaller()
class IndexInstaller(ExtensionInstaller):
def __init__(self):
super(IndexInstaller, self).__init__(
version=VERSION,
name=NAME,
description=DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
config={
'StdReport': {
'Index': {
'skin': 'Index',
'enable' : 'True',
'lang': 'en',
},
},
},
files=[('bin/user', ['bin/user/index.py']),
('skins/Index',
['skins/Index/lang/en.conf',
'skins/Index/index.html.tmpl',
'skins/Index/skin.conf',
]),
]
)