def configUpdate(configKey): fileName = configFiles[configKey] postdata = bottle.request.body.read() configVals = config.htmlToDf(postdata) config.configWrite(fileName, configVals, backup=True, headerPrint=True) bottle.redirect('/config/<configKey>/success')
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)