[prev in list] [next in list] [prev in thread] [next in thread]
List: zope
Subject: Re: [Zope] OFS.SimpleItem problem with maximum recursion depth
From: Dieter Maurer <dieter () handshake ! de>
Date: 2005-06-28 17:51:58
Message-ID: 17089.36414.616391.299857 () gargle ! gargle ! HOWL
[Download RAW message or body]
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
_______________________________________________
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 )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic