zopeskel.dexterity 1.5.2

Paster templates for dexterity

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!

What's new in zopeskel.dexterity 1.5.2:

  • Use plone.directives.form.model.schema for grok'd Schema. [smcmahon]
Read full changelog
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Izhar Firdaus
HOMEPAGE:
svn.plone.org
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
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. It's quite simple.

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.

Last updated on May 24th, 2011

requirements

#dexterity_behavior command #Paster templates #command #dexterity #behavior #templates

Add your review!

SUBMIT