[Zope] Problems modifying a "global" attribute of a portal tool.

Andreas Jung lists at zopyx.com
Tue Jul 4 07:51:15 EDT 2006



--On 4. Juli 2006 13:40:38 +0200 JoseLuis de la Rosa Triviño 
<joseluis.rosa at iavantefundacion.com> wrote:
>
>         if self.members_rooms.has_key(member):
>
>             del self.members_rooms[member]
>
>             logger.info(" %s left the room %s ", member, room)
>

Try

  members = self.members
  del members[members]
  self.members = members

The problem is likely related to the problem/feature that the ZODB does not 
notice properly changes to list or dict attrs (which is a documented 
behavior).

-aj




-- 
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info at zopyx.com - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060704/91a18db7/attachment.bin


More information about the Zope mailing list