[Zope] OFS.SimpleItem problem with maximum recursion depth exceeded Error

Dieter Maurer dieter at handshake.de
Tue Jun 28 13:51:58 EDT 2005


Gautam Saha wrote at 2005-6-28 09:51 -0500:
>I have a simple schema based on the "Article" ArchExample schema  which
>uses the " RichWidget" for file  upload.
>The product worked fine in Zope2.6.1/Plone1 but does not work in
>zope2.7.5-final/Plone2.0.5.
>I am getting a  "RuntimeError: maximum recursion depth exceeded" error
>while trying to view the uploaded file
> ...
>Module OFS.SimpleItem, line 76, in <lambda>
>RuntimeError: maximum recursion depth exceeded (Also, an error occurred
>while attempting to render the standard error message.)

This is a bug in "OFS.SimpleItem.Item" which defined
"getId" in terms of "__name__" and "__name__" in terms of
"getId" (which obviously is unhealthy).

The bug it triggered when an item is constructed that
neither got an explicit "id" nor "__name__".

> ...
>Could someone please tell me where/what code I should make this changes?

"OFS.SimpleItem.Item_w_Name" uses the Python hierarchical access
syntax.

This translates into the file path "OFS/SimpleItem.py" (the module
part of the Python access path) and there the object "Item_w_Name"
(a class in this case).

-- 
Dieter


More information about the Zope mailing list