Re: [Zope] Class Refactoring Question

2000-07-14 Thread R. David Murray

On Thu, 13 Jul 2000, James W. Howe wrote:
 I've developed a couple of simply Python classes which I'm using as base 
 classes for some ZClasses that I've developed.  I now realize that both of 
 these Python classes could benefit from obtaining behavior from another 
 class.  Will I complete hose myself if I change the class definition of my 
 Python base classes?  In other words, will existing ZClass instances be 
 completely screwed up if I do this?

I believe that this will work fine.  There has even been discussion
of doing this (having a python base class to reference the classes
you want your ZClass to have as bases) as a good technique for dealing
with the fact that you can't change the bases of a ZClass after it
is created using the management interface.

--RDM


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Class Refactoring Question

2000-07-13 Thread James W. Howe

I've developed a couple of simply Python classes which I'm using as base 
classes for some ZClasses that I've developed.  I now realize that both of 
these Python classes could benefit from obtaining behavior from another 
class.  Will I complete hose myself if I change the class definition of my 
Python base classes?  In other words, will existing ZClass instances be 
completely screwed up if I do this?

For example, suppose that I have a base class written in Python which looks 
like this:

class MyFolder(OFS.Folder.Folder):
 ...

I have a ZClass which uses MyFolder as a base, and I have one or more 
instances of my ZClass in my ZODB.

I would like to change the definition of MyFolder to be something like this:

class MyFolder(OFS.Folder.Folder, SomeOtherClass):
 ...

Can I do this, or am I asking for trouble.

Thanks.

James W. Howe   mailto:[EMAIL PROTECTED]
Allen Creek Software, Inc.  pgpkey: http://ic.net/~jwh/pgpkey.html 
 
Ann Arbor, MI  48103


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )