Exemple #1
0
def new(name, config):
    if config:
        config = Config()
        code.interact(local=locals())
        swap = SWAP(name, config)
    else:
        swap = SWAP(name)
    swap.save()
Exemple #2
0
def new(name, config):
    _c = config
    config = Config(name)
    if _c:
        code.interact(local=locals())
    swap = SWAP(config)
    print(config)
    swap.save()
Exemple #3
0
def clear(name):
    swap = SWAP.load(name)
    swap = SWAP(name, swap.config)
    swap.save()