There is some pattern to know during the transition period to keep code base compatible with both old and new API.
Access old API¶
By default, using new API your are going to work on
self that is a new RecordSet class instance.
But old context and model are still available using:
How to be polite with old code base¶
If your code must be used by old API code base, it should be decorated by:
@api.returnsto ensure adapted returned values
@api.modelto ensure that new signature support old API calls