[Zope] Persistence triggering

Max M maxmcorp@worldonline.dk
Tue, 7 Nov 2000 18:04:14 +0100


When appending to a list in Zope In a persistent class I cannot just do:

self.list.append(item)

As it will not trigger the persistence mechanism.

I can treat it like an imutable, but that is rather tedious:

_list = self.list
_list.append(item)
self.list = _list

But can I also do?

self.list = self.list + [item]

Regards
	Max M


Max M. W. Rasmussen,    Denmark.   New Media Director
private: maxmcorp@worldonline.dk work: maxm@normik.dk
-----------------------------------------------------
Specialization is for insects.  -  Robert A. Heinlein