Andreas Jung said:

>>     Module RestrictedPython.Guards, line 96, in handler
>>   TypeError: object does not support item or slice assignment
>> Does anyone have any idea what the problem is?

Digging further...

I made the TypeError a little more revealing on line 96 of
RestrictedPython/ so it now shows the 'secattr' (method) being
accessed, and its args::

        def handler(self, *args):
                f = getattr(self.ob, secattr)
            except AttributeError:
                raise TypeError, '%s | %s | %s' % (error_msg, secattr,

The value of 'secattr' is apparently '__guarded_setitem__' in my case. 
So, it seems that the email.Message.Message class does not have a
__guarded_setitem__ on it.  This is unsurprising.  I assume that it is
supposed to get added during zope initialisation somewhere, right?  Can
anybody point out where?

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to