[kupu-checkins] r41470 - kupu/trunk/kupu/plone
wiggy at codespeak.net
wiggy at codespeak.net
Tue Mar 27 14:27:23 CEST 2007
Author: wiggy
Date: Tue Mar 27 14:27:22 2007
New Revision: 41470
Modified:
kupu/trunk/kupu/plone/plonedrawers.py
Log:
Check for the portal_type on the object itself, not the whole acquisition chain
Modified: kupu/trunk/kupu/plone/plonedrawers.py
==============================================================================
--- kupu/trunk/kupu/plone/plonedrawers.py (original)
+++ kupu/trunk/kupu/plone/plonedrawers.py Tue Mar 27 14:27:22 2007
@@ -523,7 +523,7 @@
if allow_browse and context is not portal:
parent = context.aq_parent
- pt = getattr(parent, 'portal_type', None)
+ pt = getattr(parent.aq_base, 'portal_type', None)
if pt in collection_type.portal_types:
data = self.getSingleObjectInfo(parent, resource_type)
data['label'] = '.. (Parent folder)'
More information about the kupu-checkins
mailing list