利用这个三方模块,创建Dexterity框架: Add these lines into buildout: [buildout]
parts =
zopeskel
[zopeskel]
recipe = zc.recipe.egg
eggs =
ZopeSkel
Paste
PasteDeploy
PasteScript
zopeskel.dexterity
${buildout:eggs}
And run the buildoutUsageCreating a dexterity content package, typically done in your buildout's srcdirectory: ../bin/zopeskel dexterity Adding a content-type skeleton to an existing package: cd yourbuildout/src/your-product ../../bin/paster addcontent dexterity_content Adding a behavior skeleton: cd yourbuildout/src/your-product ../../bin/paster addcontent dexterity_behavior