[Zope] howto format/customize property sheets for zclasses ?

Martijn Pieters mj@antraciet.nl
Mon, 06 Sep 1999 09:43:08 +0200


At 08:45 05/09/99 , chas wrote:
>good afternoon,
>
>basic question : how does one format/customize the "properties"
>management page of a zclass instance ?
>this must be quite obvious but even after a shower i can't find
>it.
>
>eg. say i have a zclass called "Article". creating this
>     via the zope interface will automatically create the
>     following :
>
>        Article
>        Article_add (Article constructor)
>        Article_addForm (Article constructor input form)
>Article_add_permission (Article constructor permission)
>         Article_factory (Article factory)
>
>     i have edited the Article_addForm dtml-document to make the
>     html form better (eg. larger text areas larger with WRAP
>     attributes). so, now it is easier to create a new instance
>     of this zclass.
>
>     but when somebody wishes to edit/update the properties of this
>     instance, the following form is used :
>     http://domain/[zclass-instance]/propertysheets/properties/manage
>
>     is there a quick and easy way to over-ride this ? i'm only going
>     to add a few things (like better textareas or comments for users)
>     in the name of usability.
>
>  (going back to the Lotus Notes analogy earlier,  how does one
>  format/customize the "form" ?)

You can make two DTML Methods in your ZClass, one to present your form with 
the current values filled in, and one to reap the changes and update the 
properties. You then assign a tab to the first method and uses then can 
click on that tab to edit the properties the way you want them to do it.

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------