ZClass subclassing DTML Document
Hi. If I create a Zclass subclassing DTML Document or DTML Method, is there a way I can have every instance of the Zclass incorporating a fixed predefined DTML docuemnt structure and upload some html contents during the creation. Thank you Best Regards
Yes, you could change the constructor python script so that it contained some "boilerplate" code that was preloaded. This could be done by putting a DTML method in the ZClass that contained the default code. Then the constructor could snarf it using its document_src method and set itself using manage_edit. Uploading would be fine too, just add a file form field to the constructor form and set the contents of the ZClass instance to the file using manage_edit. hth, -Casey On Friday 28 March 2003 06:41 am, Fabio Rolando wrote:
Hi.
If I create a Zclass subclassing DTML Document or DTML Method, is there a way I can have every instance of the Zclass incorporating a fixed predefined DTML docuemnt structure and upload some html contents during the creation. Thank you Best Regards
participants (2)
-
Casey Duncan -
Fabio Rolando