Using zope.formlib With Plone
This Tutorial applies to:
Plone 3.1.x, Plone 3.0.x
This Tutorial is intended for:
Developers
rocky
All content on one page (useful for printing, presentation mode etc.)
- Getting Initial Skeleton Product Ready Demonstrates some best practices of setting up the initial product.
- Building A Simple Search Interface Using zope.formlib to build a simple search interface for Plone.
- Formlib And Content Types Using zope.formlib to layout Archetypes based content types.
an other hack
self.template.getId = lambda: 'index.html'
I didn t know this hack, here is mine:
inside __init__ of the View
self.request['default_tab'] = 'edit' #action_id
There is a tal:define inside one of the numerous plone2.5 templates that try to get a default_tab value inside the request.
Oh and i hate lambda fct ^^. I have read some where that python 3000 will not have lambda fct ;)
Using plone.app.form