_updateResponse function is used to update the responses of every function in MDCS. It is a protected function currently being utilized outside base.py directly.
Instead, create a wrapper function which should be public that can be utilized outside base.py.
|
def _updateResponse(self, resp, **kwargs): |
|
if (resp is None): |
|
return resp |
|
for k in kwargs: |
|
resp[k] = kwargs[k] |
|
return resp |
_updateResponse function is used to update the responses of every function in MDCS. It is a protected function currently being utilized outside base.py directly.
Instead, create a wrapper function which should be public that can be utilized outside base.py.
mdcs-py/scripts/Base/Base.py
Lines 840 to 845 in de3211f