Revision da04c447 lib/rapi/baserlib.py
b/lib/rapi/baserlib.py | ||
---|---|---|
289 | 289 |
POST_ACCESS = [rapi.RAPI_ACCESS_WRITE] |
290 | 290 |
DELETE_ACCESS = [rapi.RAPI_ACCESS_WRITE] |
291 | 291 |
|
292 |
def __init__(self, items, queryargs, req, _client_cls=luxi.Client):
|
|
292 |
def __init__(self, items, queryargs, req, _client_cls=None):
|
|
293 | 293 |
"""Generic resource constructor. |
294 | 294 |
|
295 | 295 |
@param items: a list with variables encoded in the URL |
... | ... | |
301 | 301 |
self.items = items |
302 | 302 |
self.queryargs = queryargs |
303 | 303 |
self._req = req |
304 |
|
|
305 |
if _client_cls is None: |
|
306 |
_client_cls = luxi.Client |
|
307 |
|
|
304 | 308 |
self._client_cls = _client_cls |
305 | 309 |
|
306 | 310 |
def _GetRequestBody(self): |
Also available in: Unified diff