You are not logged in Log in Join
You are here: Home » Members » mrlex's Home » Zope Mkproduct

Log in
Name

Password

 

Zope Mkproduct

This little script is designed to help developping new Zope product from templates. It generates python skeletons on filesystem of course.

The skeletons produced are fully functionnal and include the following customizable features :

  • defaults admin tabs (Properties / View / Own. / Sec.)
  • ready to use admin tab for edit Properties
  • ready to use help files
  • Persistent object

Zope products are trycky to build, specially the first time you have to do it. This package is an attempt to :

  • help new zope users to discover products without spending hours talking with the snake, huh, I wanted to say : edit python files!
  • quickstart new products.

Package

zope-mkproduct

Zope

Tested with zope 2.7

Installation :

edit the /etc/zope-mkproduct.conf to reflect your system config by default you'll find:

    # source of templates for the zope-mkproduct script
    TPL_DIR="/usr/share/zope-mkproduct"

    # destination directory for products
    PRODUCTS_DIR="/usr/lib/zope/lib/python/Products"

Usage

Example:

    zope-mkproduct MyProductName

    # at this point you can restart zope and add 
    # new *MyProductName* objects

    cd /usr/lib/zope/lib/python/Products/MyProductName

    emacs/vim/any_editor  MyProductName.py

that's all :)