[Zope-dev] proxydict problems in 2.8b2 with Localizer

Florent Guillaume fg at nuxeo.com
Tue Jun 7 10:04:06 EDT 2005


Lennart Regebro  <regebro at gmail.com> wrote:
> I get "TypeError: object does not support item assignment" in  lin 46
> och class_init.py.
> 
> The offending code is "d['_implicit__name__'] = 1" and this is because
> d is a proxydict. This in turn is caused by Localizer having a class
> as a class attribute:
>     manage_attributesForm = LocalDTMLFile
> Apparently, Zope thinks that this class attribute needs a name, but
> there isn't one.

I fixed this for the upcoming 2.8.0:

  http://svn.zope.org/Zope/?rev=30675&view=rev

See the unit test for a minimal case.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg at nuxeo.com


More information about the Zope-Dev mailing list