示例#1
0
def main(q, i, p, params, tags):

    alkira = Alkira(p.api)

    alkira.updateMacroConfig(
        space=params['space'],
        page=params['page'],
        macro=params['macro'],
        config=params['config'],
        username=params['username'],
        configid=params['configid'] if params['configid'] else None)

    params['result'] = True
示例#2
0
def main(q, i, p, params, tags):
    q.logger.log('Creating config %s/%s/%s/%s for user %s' %
        (params['space'], params['name'], params['macro'], params['configid'] if params['configid'] else "",
            params['username']), 1)
    
    alkira = Alkira(p.api)
    alkira.updateMacroConfig(space=params['space'],
                      page=params['page'],
                      macro=params['macro'],
                      config=params['config'],
                      configid=params['configid'] if params['configid'] else None,
                      username=params['username'])

    params['result'] = True