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: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-----------------------------------------------------
Specialization is for insects.  -  Robert A. Heinlein

_______________________________________________
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 )

Reply via email to