def convert_memory_location(memory):
    memory_dict = {'local': pyorient.STORAGE_TYPE_LOCAL, 'plocal': pyorient.STORAGE_TYPE_PLOCAL,
                   'memory': pyorient.STORAGE_TYPE_MEMORY}
    if memory in memory_dict:
        return memory_dict[memory]
    else:
        raise Exception('invalid argument provided to createdb()')
dataset/ETHPy150Open calthoff/flask-orientdb/flask_orientdb.py/convert_memory_location/original