[Zope] Zope 2.8.0 monkey patch issue
Pascal Peregrina
Pperegrina at Lastminute.com
Mon Jun 13 06:56:09 EDT 2005
Thanks, that works !
Pascal
-----Message d'origine-----
De : zope-bounces at zope.org [mailto:zope-bounces at zope.org]De la part de
Bernd Dorn
Envoyé : lundi 13 juin 2005 12:26
À : 'zope at zope.org'
Objet : Re: [Zope] Zope 2.8.0 monkey patch issue
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 )
_______________________________________________
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