[Zope] ZClass (Base Property = OFS: DTMLDocument)

Rik Hoekstra rik.hoekstra@inghist.nl
Thu, 22 Mar 2001 12:17:43 +0100


> I have a ZClass which is based upon OFS: DTMLDocument and I would the new
> ZClass instances to contain some standard DTML just like that found in a
> newly created
> DTMLDocument....
>
> e.g.
> <dtml-var standard_html_header>
> <h2><dtml-var title_or_id></h2>
> <p>
> This is the <dtml-var id> Document.
> </p>
> <dtml-var standard_html_footer>
>
> Any tips?
>

If you create the ZClass, some contructor methods will be made, one of which
is called add_<YourClass> where <YourClass> is the name of your ZClass. In
there you can give your class any default values you want and also change
properties. The code may give you some hints.

hth

Rik