You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I've understand correctly the save method of the base resource, it's possible to provide a specific handler a the save moment, otherwise the handler is taking from the initial object.
May be, it could be more resilient to use the self._handler attribute define at the beginning of the method ?
The text was updated successfully, but these errors were encountered:
moumoutte
changed the title
The handler into the save base resource kwargs is always overwritten.
The handler into the save base resource kwargs is always taking into account event for None value.
Aug 4, 2020
moumoutte
changed the title
The handler into the save base resource kwargs is always taking into account event for None value.
The handler into the save base resource kwargs is always taking into account even for None value.
Aug 4, 2020
If I've understand correctly the save method of the base resource, it's possible to provide a specific handler a the
save
moment, otherwise the handler is taking from the initial object.https://github.com/Mangopay/mangopay2-python-sdk/blob/master/mangopay/base.py#L190
But, in the subquery (insert or update) , only the
handler
object from the kwargs is taking into account.https://github.com/Mangopay/mangopay2-python-sdk/blob/master/mangopay/base.py#L210
and
https://github.com/Mangopay/mangopay2-python-sdk/blob/master/mangopay/base.py#L217
May be, it could be more resilient to use the
self._handler
attribute define at the beginning of the method ?The text was updated successfully, but these errors were encountered: