[Zope] default text of dtml-document derived zclass

Maik Jablonski maik.jablonski@uni-bielefeld.de
Mon, 18 Mar 2002 17:11:33 +0100


hello,

On Sun, 17 Mar 2002 13:55:24 +0100 "Marc Fischer" <marcbpc@gmx.de> wrote:

> I just created a zclass which is derived from the dtml-document. The
> only difference are some additional properties. Now the question: How is
> it possible to add a default text to an instance of the new zclass? I
> tried to add a text by dtml after the creation of the instance, but
> without success.

enter your products constructor method... there will be a line like this:

<dtml-with "yourProduct.createInObjectManager(REQUEST['id'], REQUEST)">

after that you simply add:

<dtml-call "this().manage_edit('yourDefaultText',this().title)">

greetings, maik.

-- 
 maik jablonski                           visit www.zope.org,
 universitaet bielefeld                   LET'S GET ZOPED!!!!
 zentrum fuer lehrerbildung                                 
 didaktik des sachunterrichts                            
 postfach 10 01 31                                          
 33501 bielefeld 		    
 germany                                                    
 tel: + 49 (0) 521 106 4234                                 

 http://www.zfl.uni-bielefeld.de/
 http://www.sachunterricht-online.de/