Skip to main content

Paster templates for Zope browserlayer package

Project description

Introduction

This is a ZopeSkel template package for creating a skeleton Plone add-on package. The skeleton package installs a plone.app.browserlayer browserlayer and associated css and js resources.

Use this package when you want to build an add-on that adds css or js functionality without a theme. The advantage of this is that you may use the functionality with different themes.

This is a development tool. You should be familiar with Plone and buildout to use it.

Installation

Add these lines into buildout:

[buildout]
parts =
   zopeskel

[zopeskel]
recipe = zc.recipe.egg
eggs =
   ZopeSkel
   Paste
   PasteDeploy
   PasteScript
   zopeskel.browserlayer
   ${buildout:eggs}

And run the buildout

Usage

Creating a dexterity content package, typically done in your buildout’s src directory:

../bin/zopeskel browserlayer

Notes

Egg Directories

In order to support local commands, ZopeSkel/Paster will create Paste, PasteDeploy and PasteScript eggs inside your product. These are only needed for development. You can and should remove them from your add-on distribution.

Errors

If you hit and error like this:

pkg_resources.DistributionNotFound: plone.app.relationfield: Not Found for: my.product (did you run python setup.py develop?)

when attempting to run paster addcontent, then you need to ensure that Paster knows about all the relevant eggs from your buildout.

Add ${instance:eggs} to your paster section in your buildout, thusly:

[zopeskel]
recipe = zc.recipe.egg
eggs =
   ...
   ${instance:eggs}
entry-points = paster=paste.script.command:run

where instance is the name of your plone.recipe.zope2instance section. Re-run the buildout and the issue should be resolved.

Changelog

1.0 ~ 2011-10-24

  • Initial release

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

zopeskel.browserlayer-1.0.zip (32.4 kB view details)

Uploaded Source

File details

Details for the file zopeskel.browserlayer-1.0.zip.

File metadata

File hashes

Hashes for zopeskel.browserlayer-1.0.zip
Algorithm Hash digest
SHA256 ca57d471d5be94536b7b75aee70c396b2a095c4a76c8d956cb5cdb035ffed1db
MD5 00ed4172584fe9647077d358afbd8c2f
BLAKE2b-256 cc0bab8f583683b50cb9c7880fedd5f6b4044a8d9e814c03640ef0b632e8a6a0

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