ATM the env of the WorkContext comes from the collection.
This is sub-optimal because you cannot customize it for specific cases (eg: by setting a ctx key before calling a method).
Proposal: self.env should be assigned on __init__ and got from kw args. Defaults to collection.env if not available.
It should be added to propagate-able args too.
ATM the
envof theWorkContextcomes from the collection.This is sub-optimal because you cannot customize it for specific cases (eg: by setting a ctx key before calling a method).
Proposal:
self.envshould be assigned on__init__and got from kw args. Defaults tocollection.envif not available.It should be added to propagate-able args too.