Monday, October 1, 2007

zc.buildout

http://plone.org/documentation/tutorial/buildout/introduction

Introduction

Or: "What's wrong with a plain old Zope instance"?

Martin Aspeli

Learn about eggs, setuptools and dependency management, and how to use zc.buildout to set up a development environment.
Page 1 of 9.

Prior to Plone 3.0, most developers and users who did not use a GUI installer, would set up a Zope instance, drop in a few products into the Products folder, and be done with it. Unfortunately, this approach has a few problems:

  • Plain old Zope instances are not very well equipped to deal with packages distributed as python eggs or using setuptools namespace packages. Many new packages in Plone 3 are made in this way, and more and more third party modules will be as well.
  • Without access to the metadata that is held in eggs, developers may find it too time-consuming or confusing to factor their work into multiple packages that are more re-usable, preferring monolithic products that are impossible to re-use outside Zope.
  • Without any further tools, it is cumbersome to repeat a setup across different environments.

As eggs become more important, developers should look to employ more appropriate tools for managing their code. zc.buildout, hereafter referred to only as "buildout" is one such tool. This tutorial shows how to use buildout for day-to-day development as well as deployment.

Ploneformgen

What is ploneformgen?

http://plone.org/products/ploneformgen

Project Description

Project resources

This product provides a generic Plone form generator using fields, widgets and validators from Archetypes. It makes it possible to build simple contact, information-gathering or data-entry forms through Plone's interface.

To use it, create a form folder, then add form fields as contents. Individual fields can display and validate themselves for testing purposes. The form folder creates a form from all the contained field content objects.

Final disposition of form input is handled via plug in action products. Action adapters included with this release include a mailer and a save-data adapter that saves input in tab-separated format for later download. When you first add a form folder, it's configured as simple response form with input mailed to the owner.

Since PloneFormGenerator uses Archetypes fields, widgets and validators, it's also a good tool for rapidly prototyping forms intended for use with Archetypes-derived content types.

Dependencies

Requires PythonField, TALESField and TemplateFields from Jens W. Klein's ScriptableFields bundle.