Esempio n. 1
0
def _top(key, value):
    if not utils.does_key_exist(key):
        utils.add_string(key, value)
    else:
        registry =  utils.get_registry()
        registry[key] = value + ';' + registry[key]
        utils.add_string(key, registry[key])
Esempio n. 2
0
def _append(key, value):
    if not utils.does_key_exist(key):
        utils.add_string(key, value)
    else:
        registry =  utils.get_registry()
        registry[key] = registry[key] + ';' + value
        utils.add_string(key, registry[key])
Esempio n. 3
0
def _new(key, value):
    if utils.does_key_exist(key):
        raise KeyExistsException('The given key "' + key + '" allready exists')
    print("Adding", key, ':', value, 'to path')
    utils.add_string(key, value)