Example #1
0
    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')
Example #2
0
    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)
Example #3
0
    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)