[Zope-dev] Migrating from ZClasses to Python Products

Toby Dickenson tdickenson@geminidataloggers.com
Wed, 25 Oct 2000 09:23:25 +0100


On Tue, 24 Oct 2000 20:16:30 GMT, "Jason Spisak" <444@hiretechs.com>
wrote:

>I am trying to address shortcomings like not having a
>"dictionary" type property in Zope properties, etc.

Aha! in that case you dont really need to convert from ZClass to
python class; you only need to modify your existing ZClass so that it
has an extra python base class.

* No need to trawl through your database to convert each instance

* No need to rewrite the bits that work well as a ZClass


You can do this using the method _setBasesHoldOnToYourButts defined in
ZClass.py, and you may be able to find some instructions in the list
archives.

(Its often safer to create a special python base class for each new
ZClass, even if that class is empty, just in case)

Toby Dickenson
tdickenson@geminidataloggers.com