Hi all,

I have the following question about Persistence in Zope.

I am developing a Product. This product is using some classes internally.
These classes are non Zope classes. I found out in one of the How-To's that
the Zope persistence machinery can be triggered with the expression:
_p_changed = 1, so I am able to make my non Zope classes persistent.

I use the following setup:

class ZopishClass:

        def __init__ (self, id):
                self.id = id
                self.listOfNonZopeClass2 = []

class NonZopeClass1:

        def __init__ (self, id):
                self.id = id
                self.subListOfNonZopeClass2 = []

class NonZopeClass2:

In the subListOfNonZopeClass2 I store a subset of the instances of
NonZopeClass2 that are in listOfNonZopeClass2. Now my question is:
Should is store id's in the subListOfNonZopeClass2, or should I store 'real'
instances.

According to the "Programming Python" book the pickling process takes care
or storing objects only once, but it seems that this is not true for Zope
persistence.

Anybody that can help me out?

Regards,

Jan Murre


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

Reply via email to