The attached patch is used like this:
result = store.find(...) for readonly_object in readonly(result): ...
The attached patch is used like this:
result = store.find(...)
for readonly_object in readonly(result):
...