[Zope] Adding documents in Zclasses
Bill Anderson
bill.anderson@libc.org
Sun, 18 Jul 1999 18:14:08 -0600
Ok, I've finally been futzin aorund with ZClasses. Wow, these are great!
But, of course, I have aquestion.
I have a folder-like object that I need to add some things to when
created.
I can add directories just fin, as well as blank(default) documents by
modfying the constructor.
The problem is, I need to add documents that have specific content.
Such as:
--- begin Hello----
<!--#var standard_html_header-->
<p>Hello, my name is <!--#var MyName-->.
<p> Would you like to play a game?
<!--#var standard_html_footer-->
---end Hello--
This does not work if I put the above in the data section of
manage_addDTMLDocument(id,title,data).
Would I best be served by putting it into a file and then have the
constructor upload it?
If so, how? Where would it look for the file?
Thanks.
__
Bill Anderson