[kupu-checkins] r47145 - in kupu/trunk/kupu: doc plone
duncan at codespeak.net
duncan at codespeak.net
Thu Oct 4 11:49:16 CEST 2007
Author: duncan
Date: Thu Oct 4 11:49:15 2007
New Revision: 47145
Modified:
kupu/trunk/kupu/doc/CHANGES.txt
kupu/trunk/kupu/plone/plonedrawers.py
Log:
Applied suggested patch for plone ticket #7158: Kupu Edit already inserted image: Preview and sizes get wrong urls
(I couldn't reproduce the issue, but the patch looks sensible anyway)
Modified: kupu/trunk/kupu/doc/CHANGES.txt
==============================================================================
--- kupu/trunk/kupu/doc/CHANGES.txt (original)
+++ kupu/trunk/kupu/doc/CHANGES.txt Thu Oct 4 11:49:15 2007
@@ -16,6 +16,7 @@
* 7139: Kupu Manage Anchors not working in inline edit
* 7140: kupu fails with danish letters in title.
* 7143: UnicodeError inserting image
+ * 7158: Kupu Edit already inserted image: Preview and sizes get wrong urls
- 1.4.2
Modified: kupu/trunk/kupu/plone/plonedrawers.py
==============================================================================
--- kupu/trunk/kupu/plone/plonedrawers.py (original)
+++ kupu/trunk/kupu/plone/plonedrawers.py Thu Oct 4 11:49:15 2007
@@ -20,6 +20,7 @@
from Globals import InitializeClass
from Products.Archetypes.public import *
from Products.Archetypes.interfaces.referenceable import IReferenceable
+from Products.Archetypes.utils import shasattr
from Products.PythonScripts.standard import html_quote, newline_to_br
from Products.kupu.plone import util
from Products.kupu.plone.librarytool import KupuError
@@ -648,6 +649,8 @@
except AttributeError:
return []
if portal_types:
+ while not shasattr(obj.aq_base, 'portal_type'):
+ obj = obj.aq_parent
while obj.portal_type not in portal_types:
obj = obj.aq_parent
if obj is portal:
More information about the kupu-checkins
mailing list