Book Image

Plone 3 Products Development Cookbook

Book Image

Plone 3 Products Development Cookbook

Overview of this book

The Plone Content Management System is one of the best open source CMS, because by using Plone's development framework you can extend its functionality according to the specific requirements of your website. The Plone framework has lots of components that can be used to create add-ons or extensions called Plone Products. You can optimize your site for improved usability, accessibility, and security by creating custom Plone products.This book covers recipes that will help you create custom Plone Products and implement them on your website. Every topic covered in this book is accompanied by essential fundamentals and step-by-step explanation that will help you understand it better. With the help of this book you will be able to create custom Plone products that are well suited for your website.You can read the whole book or just pick recipes relevant for you; cross references help you understand the recipes even if you do not read them in order.If you work through the book in order, you will start by setting up an example project of a news website that will be developed throughout the book. You will learn about all of the necessary tools a Plone developer must have before starting any project. You will develop the website further by detecting problems and debugging them. You will be able to modify code on-the-fly or get help on how to do some tasks by installing and using special tools such as IPython, ipdb, and PDBDebugMode. You will then create a new content type, based on an existing one, and wrap the final product into a Python egg.You will set up automated testing to prevent errors in code that have evolved in the development stage. You will use paster to automatically create a new custom content type from scratch. You will improve the performance of your application by creating lightweight content types and following other recipes covered in this book. Key features such as usability, internationalization, accessibility and security are covered to make sure that your development and customizations will be at the level of Plone core and its most remarkable add-on products.You will improve your user interface by creating simple client-side visual changes and server-side manipulation of objects. You will learn to create and manage portlets by using Portlet manager and customize your website by modifying third-party products. Finally you will learn to communicate with an external non-Python-based system and make your products available for future use.
Table of Contents (21 chapters)
Plone 3 Products Development Cookbook
Credits
About the Authors
About the Reviewers
Preface
Index

Installing i18ndude standalone


If you don't plan either to install or use ArchGenXML, you definitely should use the following installation method.

You might also have ArchGenXML installed but want i18ndude to be alone. You certainly can, but you'll miss automatic i18n files generation by ArchGenXML. It's up to you what to do.

How to do it…

  1. Create a directory for the target i18ndude installation:

    $ mkdir ~/i18ndude
    $ cd ~/i18ndude
    
  2. Prepare the buildout environment by downloading (or copying from an existing location) the bootstrap.py file:

    $ wget http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py
    

    Create a buildout.cfg file for i18ndude like the following one:

    [buildout]
    parts =
        i18ndude
    
    [i18ndude]
    recipe = zc.recipe.egg:scripts
    eggs = 
        i18ndude
    
  3. Bootstrap and build i18ndude:

    $ python bootstrap.py
    $ ./bin/buildout
    

    After this, you'll have a new i18ndude command available to be used in the bin folder.

Tip

You should consider adding i18ndude/bin in your PATH environment...