On Thu, 31 May 2001 15:22:57 +0200, "Neunreither, Isabelle" <Isabelle.Neunreither@Dresdner-Bank.com> wrote:
Folder and Image classes exist, but a class Document which is an super class for the types Files, XML Document, DTML Document, etc. does not exist, as well as a class Script which could be an super class for Python scripts, DTML Methode, etc.
Zope inherits python's policy of weakly typing. abstract interfaces are not implememted using superclasses as they are in other (strongly typed) languages. Rather, as long as an object behave like a script (by providing attributes that are characteristic of scripts) then it can be considered to implement the script interface. Note that python may develop something more formal in this direction, and I am sure Zope will be able to make good use of it.
i understand that zope needs a precise type for each object, but why can i not access a more general categorie of objects?
You need to decide which attributes are characteristic of scripts (whatever that means to you) and test for their presence. Toby Dickenson tdickenson@geminidataloggers.com