Ross Boylan <RossBoylan@stanfordalumni.org> wrote:
My case was, however, subtly different. a.__of__(b) got put in a PersistentList, which is essentially [] with a little extra help: ------------------------------------- # This code is a copy of the Python UserList.py, updated to support # persistence.
from Persistence import Persistent
class PersistentList (Persistent):
isAPersistentList = 1
def __init__(self, lst=None): if lst is None: self.data = [] else: self.data = list(lst)
This is not a correct PersistentList. Your object won't get stored to ZODB upon l.append(xx) or l.update. There is a correct PersistentList in the ZODB package of Zope 2.6 (in CVS). Florent -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com