[Zope-dev] display a ZClass instance

Brian Lloyd Brian@digicool.com
Mon, 12 Jul 1999 13:55:26 -0400


> I create a ZClass, which inherits from ObjectContainer, with 
> a index_html
> DTML method, and create an instance of the class called test.
> 
> http://localhost:9673/test or 
> http://localhost:9673/test/index_html works
> fine, but if I try doing <!--#var test--> from inside the DTML method
> http://localhost:9673/test/index_html it writes in the html 
> file (it doesn't
> show up since Netscape thinks its a tag)
> 
> 	<AnouncementsClass instance at 84f9e10>
> 
> instead of what I want it to do - that is, show the output of
> test/index_html.
> How then do I display it?  Does it need to inherit from anything else?


Try this:

<!--#with test-->
<!--#var index_html-->
<!--#/with-->


Brian Lloyd        brian@digicool.com
Software Engineer  540.371.6909              
Digital Creations  http://www.digicool.com