Skip to main content

Paster templates for dexterity

Project description

Installation

Add these lines into buildout:

[buildout]
parts =
   paster

[paster]
recipe = zc.recipe.egg
eggs =
   ZopeSkel
   PasteScript
   PasteDeploy
   zopeskel.dexterity
   ${buildout:eggs}
entry-points = paster=paste.script.command:run

And run the buildout

Usage

Creating a dexterity product:

/path/to/paster create -t dexterity

Adding a contenttype skeleton:

cd /path/to/product/root
/path/to/paster addcontent dexterity_content

Adding a behavior skeleton:

cd /path/to/product/root
/path/to/paster addcontent dexterity_behavior

Adding a view:

cd /path/to/product/root
/path/to/paster addcontent dexterity_view

Adding a field to the content type schema:

cd /path/to/product/root
/path/to/paster addcontent dexterity_content_field

Adding a field to a behavior schema:

cd /path/to/product/root
/path/to/paster addcontent dexterity_behavior_field

Note

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:

[paster]
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.2.1 ~ 2011-04-28

  • Release 1.2 of zopeskel.dexterity is not installable with python2.4 due to a bug in the tarfile module. Added setup.cfg that forces using the –formats=zip option when creating an sdist; this solves the problem on python2.4. [maurits]

1.2 ~ 2011-01-13

  • dexterity_behavior_field localcommand now also adds the relevant setter/getter/deleter in the adapter. [kagesenshi]

1.1b2 ~ 2010-11-23

  • Fixed indentation in the module generated by dexterity_behavior local command. It was using 3 spaces instead of 4 spaces. [esartor]

  • Added import for the i18n message factory to the dexterity_behavior local command. [esartor]

1.1b1 ~ 2010-06-21

  • Correcting date type fields to use schema.Date rather than schema.Datetime. Using Datetime caused an incorrect widget being used, leading to issues in KSS validation and not being able to save content. [davidjb]

  • Updating collective.z3cform.datetimewidget widgets locations. The old locations are now deprecated. [davidjb]

  • Wrapped Dexterity content title/description fields in MessageFactory call [davidjb]

  • Added note about Paster and potentially missing eggs to readme [davidjb]

1.1a1

  • added ability to add fields to the content type and behavior schema [vangheem]

  • moved to zopeskel.dexterity package from collective.dexteritypaste [vangheem]

1.0a1dev

  • 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 Distribution

zopeskel.dexterity-1.2.1.zip (36.1 kB view details)

Uploaded Source

File details

Details for the file zopeskel.dexterity-1.2.1.zip.

File metadata

File hashes

Hashes for zopeskel.dexterity-1.2.1.zip
Algorithm Hash digest
SHA256 edde6dd1184fd933911c30dd6e02aa1f723efe3a187d238fc86c6c8d194523f9
MD5 02607fd35521cbefdc740d1246495c05
BLAKE2b-256 ca4273261a983bc873bc702e45f7bf6e56ad0d361144983432b8fead9f1e7d00

See more details on using hashes here.

Supported by

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