Join GitHub today
Python3 with application initialization #4
Thank you for this! Was wondering where session-init had gone. Didn't think far enough to realize the Application was missing during Product initialization (I just thought I didn't find it when I tried to fix the session initialization).
The initialization of SessionDataManager in this product has a bad smell, but I don't see a way to handle this differently without a major API change. The order in which products are loaded is deterministic (at least), but it's dependent on the user configuration. As seen in OFS/Application.py:import_products, the order of products is by Products paths, and then by name within each path.
So by that logic, Products.TemporaryFolder will usually load after Products.Sessions (except when users have TemporaryFolder in a filesystem path that is included before Sessions)
I'll adapt the buildout.cfg so that the build is green and then would like to merge this. ACK?
Jun 5, 2018
Released to PyPI as https://pypi.org/project/Products.TemporaryFolder/5.1/