Revision a0095d84 lib/rapi/baserlib.py
b/lib/rapi/baserlib.py | ||
---|---|---|
528 | 528 |
} |
529 | 529 |
return common_static |
530 | 530 |
|
531 |
def _GetDepends(self): |
|
532 |
ret = {} |
|
533 |
if isinstance(self.request_body, dict): |
|
534 |
depends = self.getBodyParameter("depends", None) |
|
535 |
if depends: |
|
536 |
ret.update({"depends": depends}) |
|
537 |
return ret |
|
538 |
|
|
531 | 539 |
def _GenericHandler(self, opcode, rename, fn): |
532 | 540 |
(body, specific_static) = fn() |
541 |
if isinstance(body, dict): |
|
542 |
body.update(self._GetDepends()) |
|
533 | 543 |
static = self._GetCommonStatic() |
534 | 544 |
if specific_static: |
535 | 545 |
static.update(specific_static) |
Also available in: Unified diff