Re: Plone 4.3.4 RuntimeError: maximum recursion depth exceeded

Héctor Velarde <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
thanks, Jens, that makes sense; I'll ask the father of the creature over 
here to see why he was using those methods.

best regards

Héctor Velarde

On 25-11-2014 12:33, Jens W. Klein wrote:
> On 2014-11-25 15:09, Héctor Velarde wrote:
>> another one: package running tests normaly under Plone 4.3.3; after new
>> Plone 4.3.4 release, bunch of "maximum recursion depth exceeded" errors
>> on creation of a Dexterity-based content type.
>>
>> vanilla developing buildout pinned at latest release:
>>
>> https://github.com/plonegovbr/brasil.gov.agenda/blob/master/travis.cfg
>>
>> sample output:
>>
>> https://travis-ci.org/plonegovbr/brasil.gov.agenda/builds/40090559
>>
>> any hints?
>
> Yes.
>
> In plone.dexterity we had a bug: the default value of behaviors was just
> ignored, only main schema default values were taken into account. This
> was inconsistent and is now fixed, so a default set on the schema of a
> behavior works exact the same way as it does for the main schema.
>
> I guess your code in
> https://github.com/plonegovbr/brasil.gov.agenda/blob/master/src/brasil/gov/agenda/content/agendadiaria.py#L64
> tries workaround the prior problem, even if I dont get the idea why it
> does it that way.
>
> You code provides some default value for the field "subject" by trying
> to read the attribute form the content, the attribute was never set
> before, so it looks for its default. And so the recursion starts.
>
> My wild guess is, that prior broken dexterity behavior allowed your code
> to implicit fall back to acquisition and use so the subject set on the
> parent.
>
> HTH Jens
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk

_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
smime.p7s (application/pkcs7-signature, 3.7 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.