Re: Plone 4.3.4 RuntimeError: maximum recursion depth exceeded

"Jens W. Klein" <jens-/[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Organization Klein & Partner KG
Message-ID <[email protected]>
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
-- 
Klein & Partner KG, member of BlueDynamics Alliance


------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-developers
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.