Revision da3faf9d lib/rapi/baserlib.py
b/lib/rapi/baserlib.py | ||
---|---|---|
496 | 496 |
def _GetDefaultData(self): |
497 | 497 |
return (self.request_body, None) |
498 | 498 |
|
499 |
def _GetCommonStatic(self): |
|
500 |
"""Return the static parameters common to all the RAPI calls |
|
501 |
|
|
502 |
""" |
|
503 |
common_static = {} |
|
504 |
return common_static |
|
505 |
|
|
499 | 506 |
def _GenericHandler(self, opcode, rename, fn): |
500 |
(body, static) = fn() |
|
507 |
(body, specific_static) = fn() |
|
508 |
static = self._GetCommonStatic() |
|
509 |
if specific_static: |
|
510 |
static.update(specific_static) |
|
501 | 511 |
op = FillOpcode(opcode, body, static, rename=rename) |
502 | 512 |
return self.SubmitJob([op]) |
Also available in: Unified diff