37. Creating Reusable Packages¶
We already created the package
ploneconf.site much earlier.
In this part you will:
- Build your own standalone egg.
Now you are going to create a feature that is completely independent of the ploneconf site and can be reused in other packages.
To make the distinction clear, this is not a package from the namespace
ploneconf but from
We are going to add a voting behavior.
For this we need:
- A behavior that stores its data in annotations
- A viewlet to present the votes
- A bit of css
We move to the
src directory and again use a script called
mrbob from our project’s
bin directory and the template from
bobtemplates.plone to create the package.
$ mkdir src $ cd src $ ../bin/mrbob -O starzel.votable_behavior bobtemplates:plone_addon
Enter to all questions except our personal data and the Plone version. Here we enter