Needs update to latest Plone releases
Is there a way to let bobtemplates.plone point always to the latest bugfix release of a series instead of letting us always edit some files to adjust this?
If not: the manual work is again needed.
Shouldn't this be asked at mr.bob since we're messing with ini files?
My 0.02c:
- Set a bunch of environment variables somehow (for example, named MR_BOB_PLONE_VERSION), from Python code, and these environment variables are set with the latest bugfix release from somewhere on the internet (like parsing http://dist.plone.org/release/4.3-latest/versions.cfg and getting Products.CMFPlone version);
- In https://github.com/plone/bobtemplates.plone/blob/30dd5dbf9737fdc62746080ec403787bbd58c776/bobtemplates/plone_addon/.mrbob.ini#L43, instead of a fixed version, we use this environment variable, MR_BOB_PLONE_VERSION;
- In mr.bob, we change the configparser to take os.environ into account (See http://stackoverflow.com/a/26588269). This way we can have all the dynamic variables we would need.
The problem here is to define where exactly should this environment variables be set (don't even know if it's possible by the way mr.bob works), and the whole architecture is not exactly intuitive, but at least we're not trying to reinvent the wheel since ConfigParser supports this idea.
We could either use something like 5.0-latest in tthe init file or use a pre question hook to calculate the Plone Version. Setting a environment variable like BOBTEMPLATES_PLONE_VERSION seems to be flexible and could always overrite the static default.