You are not logged in Log in Join
You are here: Home » Members » jim » ZDOM-save » No Constructor calls » wikipage_view

Log in



No Constructor calls

Issue: None of the current Zope Objects call __init__ on thier base classes.

Many Zope classes don't use __init__ functions, because of a flaw in the original Python pickle protocol that made constructors very unattractive. This flaw has been fixed, but there was no compelling reason to add constructors to many of the core base classes.

Notes: DOM requires that its state is set up on initialization. How is the state of Zope Objects initializied?

Just like the state of any other Python object. If there's an __init__ methodm it gets called, otherwise the state is minimal.

I added a constructor to Item and Folder for testing.

What DOM state needed to be set up?