Revision 68b952f9 snf-cyclades-app/synnefo/vmapi/__init__.py

b/snf-cyclades-app/synnefo/vmapi/__init__.py
38 38

  
39 39
from synnefo.vmapi.settings import CACHE_KEY_PREFIX, CACHE_BACKEND
40 40

  
41

  
41 42
def get_uuid():
42 43
    return str(uuid4())
43 44

  
45

  
44 46
def get_key(*args):
45 47
    args = map(str, filter(bool, list(args)))
46 48
    args.insert(0, CACHE_KEY_PREFIX)
......
54 56
# here.
55 57
if hasattr(backend, 'close'):
56 58
    signals.request_finished.connect(backend.close)
57

  

Also available in: Unified diff