[Zope] Developing products in anticipation of Zope 3

Max M maxm@mxm.dk
Thu, 03 Oct 2002 11:33:27 +0200


Wankyu Choi wrote:

> What holds me back from going ahead with my plan is... Zope 3. I read an interview article where Jim Fulton **hoped** Zope 3 would be available in **a** usable form in July or early this fall. 


That path leads to the dark side. Don't write software that depends on 
som future fabled technology. React to what is there now.

To be prepared for Z3 you could just do the simple thing and create 
baseclasses for your products in a standalone class. That way it should 
be pretty simple to implement that class in Z3.

class myProductBase(Persistent):
     "implements the logic, can be ported to Z3 later"

class myProduct(myProductBase, SimpelItem):
     "implements the presentation and security settings"

A little like using a Python baseclass in a ZClass.


regards Max M

The reason I don't reach any higher is that I stand on the shoulders of 
midgets.