def configure(configKey, item): fileName = configFiles[configKey] configFileVals = config.configRead( fileName ) item = int(item) + 1 data = configFileVals.drop( item ) config.configWrite(fileName, data, backup=True) bottle.redirect('/config/%s'%configKey)
def configure(configKey, item): fileName = configFiles[configKey] configFileVals = config.configRead(fileName) item = int(item) + 1 toInsert = configFileVals.ix[item, :] data = configFileVals.append( toInsert) config.configWrite(fileName, data, backup=True) bottle.redirect('/config/%s'%configKey)
def configure(configKey): configFileVals = config.configRead(configFiles[configKey]) return dict(info=configFileVals.T, key=configKey)