add sspanelv3 interface, read the 'method' row

This commit is contained in:
BreakWa11 2016-06-12 17:41:05 +08:00
parent 51bd3fcea0
commit c7864acc37
4 changed files with 20 additions and 8 deletions

View file

@ -1,6 +1,12 @@
from configloader import load_config, get_config
def getKeys():
return ['port', 'u', 'd', 'transfer_enable', 'passwd', 'enable' ]
#return ['port', 'u', 'd', 'transfer_enable', 'passwd', 'enable', 'plan' ] # append the column name 'plan'
load_config()
key_list = ['port', 'u', 'd', 'transfer_enable', 'passwd', 'enable' ]
if get_config().API_INTERFACE == 'sspanelv3':
key_list += ['method']
return key_list
#return key_list + ['plan'] # append the column name 'plan'
def isTurnOn(row):
return True