[Zope-dev] Zclass questions

Anthony Pfrunder s341625@student.uq.edu.au
Tue, 20 Jul 1999 07:50:05 +1000 (GMT+1000)


[I'm re-sending this as it appears to have got lost somewhere in the
matrix...]

[I'm posting this here b4 the Collector in case these have been solved in
CVS versions.  NB I'm using Zope A4 on IE 4 for Windows]

Hi,

I've found a bug(s) in ZClasses.  Try the following:

Create a new product
Create a Zclass in the Product
Delete the Zclass you just made
Create a new Zclass in the same place.  You will get a traceback error
complaining about missing method manage_addzclass.
Press the reload button and try again and it works

Also,
If you make anything items in a Zclass methods folder apart from a DTML
Method Zope will throw up random errors.  Sometimes it will put it into
the root of the zclass (along with the factory DTML docs), sometimes it
will insert it and then throw up intermittant tracebacks relating to
missing zclass methods.  To fix it, delete the zclass and add it again.

Finally,
If I make a zclass based on DTML Document and then create an instance of
it and then VIEW the instance then IE downloads the document instead of
displaying it.  NB I was using a metatype of "Visual DTML".  I haven't
have a chance to try it with netscape yet. 

A few Q's about ZClasses (things I am going to try but want to ask while
I'm posting;): 
If I make some methods in a Zclass can then call them via:
Instance_html/mymethod? (where Instance_html is the url of a DTML Document
based zclass)

Which way does the acquision ('cuse the spelling) work?  Through the
Instance or through the zclass or both?

If I make a zclass in the methods part of a zclass can I inherit the
methods of the parent?

Can I pinch the tar.py for my Zope for Windows distrib? ;)

Cheers,

Anthony Pfrunder