[Zope] Zope 2.8.0 monkey patch issue

Bernd Dorn zope-mailinglist at mopa.at
Mon Jun 13 06:26:27 EDT 2005


Pascal Peregrina wrote:
> Hi,
> 
> I am trying to migrate from Zope 2.7.6 to 2.8.0
> 
> In some product I did, I need to monkey patch some OFS and CMF classes (I do
> this in product init).
> 
> I get this error whenever I try to do
> <someclass>.__dict__[<someclassattributename>]=<newvalue> :
> TypeError: object does not support item assignment

'got the same problem

use:
setattr(<someclass>,<someclassattributename>,<newvalue>)

must be something about the new implementation of extensionclass

> 
> This was working fine in Zope 2.7.x
> 
> Any idea what could have changed that would imply this ?
> 
> Thanks for your answers.
> 
> Pascal
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> **********************************************************************
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )



More information about the Zope mailing list