Exemple #1
0
def clear_boa_cache(event):
    """Delete the cached book of abstract"""
    path = boa_settings.get(event, 'cache_path')
    if path:
        try:
            os.remove(os.path.join(Config.getInstance().getXMLCacheDir(), path))
        except OSError as e:
            if e.errno != errno.ENOENT:
                raise
        boa_settings.delete(event, 'cache_path')
Exemple #2
0
def clear_boa_cache(event):
    """Delete the cached book of abstract"""
    path = boa_settings.get(event, 'cache_path')
    if path:
        try:
            os.remove(os.path.join(config.CACHE_DIR, path))
        except OSError as e:
            if e.errno != errno.ENOENT:
                raise
        boa_settings.delete(event, 'cache_path')
Exemple #3
0
def clear_boa_cache(event):
    """Delete the cached book of abstract"""
    path = boa_settings.get(event, 'cache_path')
    if path:
        try:
            os.remove(os.path.join(config.CACHE_DIR, path))
        except OSError as e:
            if e.errno != errno.ENOENT:
                raise
        boa_settings.delete(event, 'cache_path')
Exemple #4
0
def clear_boa_cache(event):
    """Delete the cached book of abstract"""
    path = boa_settings.get(event, 'cache_path')
    if path:
        try:
            os.remove(os.path.join(Config.getInstance().getXMLCacheDir(),
                                   path))
        except OSError as e:
            if e.errno != errno.ENOENT:
                raise
        boa_settings.delete(event, 'cache_path')
Exemple #5
0
def clear_boa_cache(event):
    """Delete the cached book of abstract"""
    path = boa_settings.get(event, 'cache_path')
    if path:
        os.remove(path)
        boa_settings.delete(event, 'cache_path')
Exemple #6
0
def clear_boa_cache(event):
    """Delete the cached book of abstract"""
    path = boa_settings.get(event, 'cache_path')
    if path:
        os.remove(path)
        boa_settings.delete(event, 'cache_path')