You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
680 B
20 lines
680 B
#!/usr/bin/python
|
|
|
|
from setuphelpers import *
|
|
|
|
uninstallkey=[]
|
|
|
|
newmaturity = 'DEV'
|
|
|
|
def install():
|
|
if not newmaturity in WAPT.maturities:
|
|
WAPT.maturities.append(newmaturity)
|
|
inifile_writestring(WAPT.config_filename,'global','maturities',','.join(WAPT.maturities))
|
|
|
|
def uninstall():
|
|
if newmaturity in WAPT.maturities:
|
|
WAPT.maturities.remove(newmaturity)
|
|
inifile_writestring(WAPT.config_filename,'global','maturities',','.join(WAPT.maturities))
|
|
|
|
if not inifile_readstring(WAPT.config_filename,'global','maturities',','.join(WAPT.maturities)) :
|
|
inifile_deleteoption(WAPT.config_filename,'global','maturities')
|
|
|