Package: ps.bob
ps.bobps.bobprovides severalmr.bobtemplate to generate packages forPropertyshelfprojects.To create a package likeps.diazo.mytheme:$ mrbob ps.bob:diazo_themeNoteIn contrast to other availablemr.bobtemplates (e.g.bobtemplates.plone), the packages created withps.bobcreate the package folder as well.Available TemplatesThe templates provided byps.bobare categorized as follows:Plone and Diazo PackagesZope Packages (planned)Pyramid Packages (planned)MLS Packages (planned)Plone and Diazo Packagesdiazo_themeA installable diazo core or customer theme.
Core themes are mainly used as a base for most customer themes.
Customer themes can extend a core theme.OptionsOn creating a package you can choose from the following options. The default value is in [square brackets].diazo_themeType of the Theme (core or customer) [customer]A customer theme can extend a core theme.
Core themes will have theps.diazonamespace prefix, customer themes thecustomer.diazonamespace prefix.Base theme to extendAdd the package name of the core theme you want to extend.
Leave empty if you don’t want to extend.
This options is only available forcustomerthemes.Repository type of the base theme to extend [git]Should be something like ‘git’, ‘hg’, ‘svn’.
Used for the mr.developer source section within the buildout.
This option is only available if a base theme was provided.Repository URL of the base theme to extend [https://github.com/propertyshelf/ps.diazo.vanilla]The URL to the repo used for the mr.developer source section within the buildout.
This option is only available if a base theme was provided.Name of the Theme [Example Theme]Should be something like ‘Example Theme’.Package Name of the Theme [example]Should be something like ‘example’.FeaturesPackage created withps.bobuse the current best-practices when creating an addon.Plone and Diazo PackagesBuildoutThe packages are contained in a buildout that allow you to build Plone with the new package installed for testing-purposes.LocalesThe packages register a directory for locales.ProfileThe packages contain aGeneric Setup Profilethat installs a browserlayer.SetuphandlerThe packages contain asetuphandlers.pywhere you can add code that is executed on installing the package.Template-OverridesThe packages register the foldertemplate_overridesas a directory where you can drop template-overrides usingz3c.jbot.TestsThe packages come with a test setup and sometestsfor installing the package.
They also contain arobot-testfor browser testing.
The buildouts also contains a config to allow testing the package ontravis.CompatibilityAddons created withps.bobare tested to work in Plone 4.3.x.
They should also work with other versions but that was not tested.InstallationUse in a buildout[buildout]
parts += mrbob

[mrbob]
recipe = zc.recipe.egg
eggs =
    mr.bob
    ps.bobIf you want to use the latest development version from GitHub, addps.bobto yourmr.developersource section:[buildout]
extensions += mr.developer

[sources]
ps.bob = git git://github.com/propertyshelf/ps.bob.gitThis creates a mrbob-executeable in your bin-directory.
Call it from thesrc-directory of your project like this.:$ ../bin/mrbob ps.bob:diazo_themeInstallation in a virtualenvYou can also installps.bobin a virtualenv.:$ pip install ps.bobYou can also install the latest version ofps.bobdirectly from GitHub:$ pip install -e git://github.com/propertyshelf/ps.bob.git#egg=ps.bobNow you can use it like this:$ mrbob ps.bob:diazo_themeContributorsThomas Massmann,thomas@propertyshelf.comChangelog0.1.2 (2016-04-19)Fixed wrong profile id in migration script.Removed unnecessary namespace_packages from setup.py.Update package template to use newer buildout.Do not release generated packages to pypi by default.Update code-analysis for diazo packages.0.1.1 (2015-03-05)Fixed package setup.0.1 (2015-03-05)Initial release.