14 Feb
2000
14 Feb
'00
5:20 a.m.
----- Original Message ----- From: Tres Seaver <tseaver@palladion.com>
That 'leaves.update(..}' is a really ugly workaround to the fact that PythonMethods won't allow the "natural" dictionary manipulation: 'leaves[ leaf.id ] = leaf'. While I understand not wanting to allow key replacement in "global" dictionaries, can we lose this restriction for "local" ones?
Yes we can, provided you code carefully. See my PROPOSAL: in Zope-dev a few weeks ago.
(OTOH, we need to look at potential security issues around the use of update(), too).
Too true. Any exposed list or dict needs a sharp examination. Cheers, Evan @ digicool