Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
20 rindas
679 B
20 rindas
679 B
#!/usr/bin/python
|
|
|
|
from setuphelpers import *
|
|
|
|
uninstallkey=[]
|
|
|
|
newmaturity = 'RC'
|
|
|
|
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')
|
|
|