Hi! I hit my head to wall with this few days ago. I also saw the issue you mentioned and learned that it has nothing to do with this problem. The problem is that your intid utility gets wiped out on product reinstalls if you have plone.app.dexterity mentioned as a dependency in metadata.xml. You can check this quickly by creating a new item and point your related item field to this newly created type - it should work. Now reinstall product and try that again.
If you put pdb to plone.app.relationfields setuphandlers.py code you'll see that when you reinstall your product your intid utility gets removed and then installed. When this happens you can say bye bye to your intids. I'm not sure if this is a feature or bug as you shouldn't really reinstall products. Just use portal_setups import tab if you need to bring some new GS-settings to your site. On the other hand if this is a feature, it is a nasty one and could really hurt your site. - Jukka Philip Kilner wrote: > > Hi, > > I'm working on a TTW Dexterity content type after upgrading from Plone > 4.1 / Dexterity 1.0.1 to 4.1.2 / 1.0.3. > > When I select the "Related Items" behaviour and try to create a link to > a related item, the action fails with the following traceback: - > > Traceback (innermost last): > Module ZPublisher.Publish, line 126, in publish > Module ZPublisher.mapply, line 77, in mapply > Module ZPublisher.Publish, line 46, in call_object > Module plone.z3cform.layout, line 70, in __call__ > Module plone.z3cform.layout, line 54, in update > Module plone.dexterity.browser.edit, line 46, in update > Module plone.z3cform.fieldsets.extensible, line 59, in update > Module plone.z3cform.patch, line 30, in GroupForm_update > Module z3c.form.group, line 138, in update > Module z3c.form.action, line 99, in execute > Module z3c.form.button, line 315, in __call__ > Module z3c.form.button, line 170, in __call__ > Module plone.dexterity.browser.edit, line 23, in handleApply > Module z3c.form.group, line 109, in applyChanges > Module z3c.form.group, line 77, in applyChanges > Module z3c.form.form, line 52, in applyChanges > Module plone.app.relationfield.widget, line 127, in set > Module five.intid.intid, line 33, in getId > Module zope.intid, line 89, in getId > KeyError: <Container at > /site/qualifications-1/units/principles-and-legal-framework-of-key-holding> > > This seems to be related to this issue: - > > http://code.google.com/p/dexterity/issues/detail?id=223 > > ...which was solved by pinning versions. > > In my buildout I have: - > > http://good-py.appspot.com/release/plone.app.theming/1.0b8?plone=4.1.2 > http://good-py.appspot.com/release/dexterity/1.0.3-1?plone=4.1.2 > > Can anyone help me understand what else I need to pin down here? > > > -- > > Regards, > > PhilK > > > e: [email protected] - m: 07775 796 747 > > 'work as if you lived in the early days of a better nation' > - alasdair gray > _______________________________________________ > Product-Developers mailing list > [email protected] > https://lists.plone.org/mailman/listinfo/plone-product-developers > -- View this message in context: http://plone.293351.n2.nabble.com/Related-Items-in-Plone-4-1-2-Dexterity-1-0-3-tp6955440p6962215.html Sent from the Product Developers mailing list archive at Nabble.com. _______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/plone-product-developers
