[CMF-checkins] CVS: CMF/CMFWorkspaces - OrganizationTool.py:1.7
Florent Guillaume
fg@nuxeo.com
Wed, 19 Feb 2003 16:29:04 +0100
Hmm, why would self._p_changed = 1 not work?
Florent
In article <200302182012.h1IKCfC12787@cvs.baymountain.com> you write:
> Modified Files:
> OrganizationTool.py
> Log Message:
> OK, since _p_changed didn't work, play the temporary variable dance to mutate
> the dictionary
>
>
> === CMF/CMFWorkspaces/OrganizationTool.py 1.6 => 1.7 ===
> --- CMF/CMFWorkspaces/OrganizationTool.py:1.6 Tue Feb 18 15:05:34 2003
> +++ CMF/CMFWorkspaces/OrganizationTool.py Tue Feb 18 15:12:41 2003
> @@ -119,8 +119,9 @@
> def setTypeLocation(self, type, location, skin_name=''):
> """Sets a single location and skin name for a type.
> """
> - self._types[type] = (location, skin_name)
> - self._p_changed = 1
> + t = self._types
> + t[type] = (location, skin_name)
> + self._types = t
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com