Skip to main content

mr.bob templates for Propertyshelf projects.

Project description

ps.bob

ps.bob provides several mr.bob template to generate packages for Propertyshelf projects.

To create a package like ps.diazo.mytheme:

$ mrbob ps.bob:diazo_theme

Available Templates

The templates provided by ps.bob are categorized as follows:

  • Plone and Diazo Packages

  • Zope Packages (planned)

  • Pyramid Packages (planned)

  • MLS Packages (planned)

Plone and Diazo Packages

diazo_theme

A 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.

Options

On creating a package you can choose from the following options. The default value is in [square brackets].

diazo_theme

Type of the Theme (core or customer) [customer]

A customer theme can extend a core theme. Core themes will have the ps.diazo namespace prefix, customer themes the customer.diazo namespace prefix.

Base theme to extend

Add 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 for customer themes.

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’.

Features

Package created with ps.bob use the current best-practices when creating an addon.

Plone and Diazo Packages

Buildout

The packages are contained in a buildout that allow you to build Plone with the new package installed for testing-purposes.

Locales

The packages register a directory for locales.

Profile

The packages contain a Generic Setup Profile that installs a browserlayer.

Setuphandler

The packages contain a setuphandlers.py where you can add code that is executed on installing the package.

Template-Overrides

The packages register the folder template_overrides as a directory where you can drop template-overrides using z3c.jbot.

Tests

The packages come with a test setup and some tests for installing the package. They also contain a robot-test for browser testing. The buildouts also contains a config to allow testing the package on travis.

Compatibility

Addons created with ps.bob are tested to work in Plone 4.3.x. They should also work with other versions but that was not tested.

Installation

Use in a buildout

[buildout]
parts += mrbob

[mrbob]
recipe = zc.recipe.egg
eggs =
    mr.bob
    ps.bob

If you want to use the latest development version from GitHub, add ps.bob to your mr.developer source section:

[buildout]
extensions += mr.developer

[sources]
ps.bob = git git://github.com/propertyshelf/ps.bob.git

This creates a mrbob-executeable in your bin-directory. Call it from the src-directory of your project like this.:

$ ../bin/mrbob ps.bob:diazo_theme

Installation in a virtualenv

You can also install ps.bob in a virtualenv.:

$ pip install ps.bob

You can also install the latest version of ps.bob directly from GitHub:

$ pip install -e git://github.com/propertyshelf/ps.bob.git#egg=ps.bob

Now you can use it like this:

$ mrbob ps.bob:diazo_theme

Changelog

0.1 (2015-03-05)

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

ps.bob-0.1.zip (72.3 kB view details)

Uploaded Source

ps.bob-0.1.tar.gz (46.6 kB view details)

Uploaded Source

File details

Details for the file ps.bob-0.1.zip.

File metadata

  • Download URL: ps.bob-0.1.zip
  • Upload date:
  • Size: 72.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ps.bob-0.1.zip
Algorithm Hash digest
SHA256 cc96e49ea76ad38be7cd6387f3defa90f3010ef3a604140e5d0c2a9cc5a10e70
MD5 3aa9b09ccac44fbdffc983e8fe753a85
BLAKE2b-256 0a6b137a07c5b49be41052bc65b3cc4c38788cddf86f2549bda28aef2e808554

See more details on using hashes here.

File details

Details for the file ps.bob-0.1.tar.gz.

File metadata

  • Download URL: ps.bob-0.1.tar.gz
  • Upload date:
  • Size: 46.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ps.bob-0.1.tar.gz
Algorithm Hash digest
SHA256 d1f72d8b87981d77514bcee1f7c28404abaf1eb30542920030d767983492b325
MD5 bda1c6cfdc82431dc83951c1e4e2cb57
BLAKE2b-256 266fb565d61f2a56bd9ef01bd3c7c2dcdd58aefca83fb6c7fd272513712fb83a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page