Revision 9b3a95f1 snf-pithos-backend/pithos/backends/lib/hashfiler/archipelagoblocker.py
b/snf-pithos-backend/pithos/backends/lib/hashfiler/archipelagoblocker.py | ||
---|---|---|
50 | 50 |
|
51 | 51 |
monkey.patch_Request() |
52 | 52 |
|
53 |
from pithos.api.settings import BACKEND_ARCHIPELAGO_CONF |
|
54 |
|
|
55 | 53 |
|
56 | 54 |
class ArchipelagoBlocker(object): |
57 | 55 |
"""Blocker. |
... | ... | |
64 | 62 |
|
65 | 63 |
def __init__(self, **params): |
66 | 64 |
cfg = {} |
67 |
bcfg = open(BACKEND_ARCHIPELAGO_CONF).read()
|
|
65 |
bcfg = open(glue.WorkerGlue.ArchipelagoConfFile).read()
|
|
68 | 66 |
cfg['blockerb'] = re.search('\'blockerb_port\'\s*:\s*\d+', |
69 | 67 |
bcfg).group(0).split(':')[1] |
70 | 68 |
blocksize = params['blocksize'] |
Also available in: Unified diff