-----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-----

<<attachment: lists.vcf>>

_______________________________________________
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to