[Product-Developers] Persistent broken five.intid.intid.IntIds after Plone 4.2 -> 4.3 migration

David Glick david.glick at plone.org
Sun May 26 15:08:40 UTC 2013


As documented in the upgrade guide and Dexterity release notes you must install plone.app.dexterity with the [relations] extra if upgrading to Dexterity 2. This is unfortunate but was necessary since no one has committed to maintaining the relation support, so it couldn't be submitted to be in core.

David Glick
(mobile)

On May 26, 2013, at 6:30 AM, Andreas Jung <lists at zopyx.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Plone 4.3:
> 
> calling
> 
>   img.target.to_object
> 
> fails for all referenced objects of a Plone site migrated from Plone
> 4.2.X to Plone 4.3
> 
> 
> 
> /home/plone/.buildout/eggs/z3c.relationfield-0.6.2-py2.7.egg/z3c/relationfield/relation.py(111)_object()
> 
> 
> - -> try:
> (Pdb) list
> 106      def _object(id):
> 107          if id is None:
> 108              return None
> 109          intids = component.getUtility(IIntIds)
> 110          import pdb; pdb.set_trace()
> 111  ->        try:
> 112              return intids.getObject(id)
> 113          except KeyError:
> 114              # XXX catching this error is not the right thing to do.
> 115              # instead, breaking a relation by removing an object should
> 116              # be caught and the relation should be adjusted that way.
> 
> (Pdb) print intids
> <persistent broken five.intid.intid.IntIds instance
> '\x00\x00\x00\x00\x00\x04\x9e\xb8'>
> 
> (Pdb) intids.getObject(id)
> *** AttributeError: getObject
> 
> Why do we have broken five.intid here?
> 
> - -aj
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iQGUBAEBAgAGBQJRog5pAAoJEADcfz7u4AZj3M8LwNzUv6JMW8pbE3fo0jpsTcu+
> /rS9P5pszWQAdTfeEt0KmcKx2AQfdTdGAt28TEvNI9fppM4N9/9/zP3IvfPwaB6z
> 45CcHGdc8aQQwlikJQntChalfi8bFlX8BSEJd+MMVdUlydWSZUYLBfehWmJReOgt
> 8Lo5ROSvhCGIjWjLrgM64AYcV/c5ZFrG0OJTPtgkd550z2oaMjD6MUPRClA3H4cb
> y3wMloEs1iGJpWj1GW3M0aKSb88ExZ3PE6BBsDB8gwOwq1UEPbY2X+FuXeejXDta
> 5lqbAcDYKGR1yaYqgJkj7pvYGUIGd6GulLwU+inmjTw2mYP/jdGADzdJ+wBkQc5V
> ejMl7Xs9jY4NPDaeW3H1NorKxYhEF0G/qmn4HTVgiIs2OEjekb9DSktoEbraIWVw
> uPG4flFOlN1ldNxGk79UBqyy14OwPeJGlsv0BRA2DDUiah+ABA4MFEipjhz5Sg+h
> Sl8hNIWFnrxawAbm9a+lPqgg5rY0wHg=
> =7f59
> -----END PGP SIGNATURE-----
> <lists.vcf>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers


More information about the Product-Developers mailing list