Hello,
as Asko wrote in his final sprint report: http://tech.blog.jyu.fi/2017/07/midsummer-sprint-final-report.html
I work recently on improving bobtemplates.plone and providing a better user story there.
The current state
is, that I've implemented a first subcommand for dx_content_type already and still working on moving the theming part also in a subcommand. So that one will use the plone_addon template to create a package and can use later one or more subcommands (subtemplates) to add other functionallity into the existing package.
Further subtemplates could be behaviors, portlets and so on.
The existing subtemplates are not complete yet, but as soon as the general structure is solid, we can improve the individual templates in time.
Usage
First you create a plone_addon package:
mrbob -O collective.foo bobtemplates.plone:plone_addon
then you change into the created package and create for example one or more a dexterity content types:
mrbob bobtemplates.plone:dx_content_type
or you can create a theme inside the package:
mrbob bobtemplates.plone:plone_theme
Broken package namespace
bobtemplates.plone currently has no real namespace which I'm now fixing: so that one can import from bobtemplates.plone.hooks and not from bobtemplates.hooks. This also means that we have to change the usage of our package a bit.
mrbob -O collective.foo bobtemplates:plone_addon
will become:
mrbob -O collective.foo bobtemplates.plone:plone_addon
More modular structure
I just startet to move the python code for every subtemplate into it's own file like: dx_content_type.py or plone_theme.py. These files then also import generic functions from subcommand.py. This way we have a clean structure which can grow without losing control.
Still a lot of work to do
- finish the transion of the theme package template into the theme subtemplate
- find a good way to update buildout-files
- integrate the work from @Alexander_Loechel to have the tox setup for testing
- add docs and make a release
Nice to have in the future
- add a project buildout skeleton template
- more templates
Suggestions, ideas, help?
I would like to get some feedback from you and of course every help is hightly appreciated.
The target is, to come up soon with a very useful helper to start or extend Plone projects, to make it easier to develop with Plone.