Revision 5607fc6c snf-common/synnefo/lib/pool/__init__.py
b/snf-common/synnefo/lib/pool/__init__.py | ||
---|---|---|
294 | 294 |
|
295 | 295 |
# default keyword args to pass to pool initialization |
296 | 296 |
_pool_default_settings = ( |
297 |
('size', 25),
|
|
298 |
)
|
|
297 |
('size', 25), |
|
298 |
) |
|
299 | 299 |
|
300 | 300 |
# keyword args to pass to pool_get |
301 | 301 |
_pool_default_get_settings = ( |
302 |
('blocking', True),
|
|
303 |
#('timeout', None),
|
|
304 |
('create', True),
|
|
305 |
('verify', True),
|
|
306 |
)
|
|
302 |
('blocking', True), |
|
303 |
#('timeout', None), |
|
304 |
('create', True), |
|
305 |
('verify', True), |
|
306 |
) |
|
307 | 307 |
|
308 | 308 |
# behavior settings |
309 | 309 |
_pool_attach_context = False |
... | ... | |
313 | 313 |
### Subclass attribute customization ends here. ### |
314 | 314 |
##################################################### |
315 | 315 |
|
316 |
def __init__(self, pool_settings=None, |
|
317 |
get_settings=None, |
|
318 |
attach_context=None, |
|
319 |
disable_after_release=None, |
|
320 |
ignore_double_release=None, |
|
321 |
**kwargs): |
|
316 |
def __init__(self, pool_settings=None, get_settings=None, |
|
317 |
attach_context=None, disable_after_release=None, |
|
318 |
ignore_double_release=None, **kwargs): |
|
322 | 319 |
"""Initialize a PooledObject instance. |
323 | 320 |
|
324 | 321 |
Accept only keyword arguments. |
Also available in: Unified diff