If what is intended with this code is to monkey patch some class, then I had
a similar problem on 2.8.0 and I solved it by using setattr() instead of
item assignment (and it works with 2.7.6).

Pascal 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Chris Withers
Sent: 29 September 2005 09:12
To: Luca Olivetti
Cc: [EMAIL PROTECTED]; zope@zope.org
Subject: Re: [Zope] Zope Debugger 0.8.0 Released!

Luca Olivetti wrote:

>     folder_permissions, raise_exc=debug_mode)
>   File "/usr/local/zope-2.8.1-final/lib/python/OFS/Application.py", 
> line 773, in install_product
>     initmethod(context)
>   File "/home/luca/zopetest/Products/zdb/__init__.py", line 64, in 
> initialize
>     pack._m['debug_compile'] = debug_compile
> TypeError: object does not support item assignment

*sigh*, looks like some of the project registration machinery has changed
between 2.7 and 2.8.

I've opened a collector entry for this:

https://secure.simplistix.co.uk/support/issue176

...and I'll go and see if anyone on zope-dev@zope.org knows how to do this
in 2.8 and 2.7...

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk
_______________________________________________
Zope maillist  -  Zope@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 )


**********************************************************************
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@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 )

Reply via email to