Open GoogleCodeExporter opened 9 years ago
Looks as if the image processor code can't deal properly with references to
images through UID.
I suggest to add something like:
uid_reg = re.compile('([\dA-Fa-f]{32})')$
338 if img_obj is None and 'resolveuid' in src:$
339 mo = uid_reg.search(src)$
340 if mo:$
341 uid = mo.group(0)$
342 img_obj =
params['context'].reference_catalog.lookupObject(uid)$
taken from zopyx.smartprintng.plone
Original comment by zopyxfilter
on 28 Oct 2010 at 9:19
From a debug session:
(Pdb) print url
resolveuid/9bf030a5a7161ea7c3f52f2ce2ceab62/image_preview
(Pdb) context.restrictedTraverse(url)
*** NotFound: 9bf030a5a7161ea7c3f52f2ce2ceab62
(Pdb) context.reference_catalog.lookupObject('9bf030a5a7161ea7c3f52f2ce2ceab62')
<ATImage at
/20101028-055330/onkopedia/redaktion/autorenumgebung/contents/onkopedia/aml/aml-
1>
(Pdb) context.reference_catalog.lookupObject('9bf030a5a7161ea7c3f52f2ce2ceab62')
Original comment by zopyxfilter
on 28 Oct 2010 at 9:41
Thanks.
We will fix this for the next release.
Original comment by mioht...@gmail.com
on 4 Nov 2010 at 1:22
Original issue reported on code.google.com by
zopyxfilter
on 28 Oct 2010 at 8:01