From 89ffe21b8653cc7e29151df053acdc4a0fd6dd1a Mon Sep 17 00:00:00 2001 From: helmutm Date: Wed, 7 Mar 2007 15:19:50 +0000 Subject: [PATCH] some adjustments on permissions for editing and showing certain portlets git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1623 fd906abe-77d9-0310-91a1-e0d9ade77398 --- browser/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/common.py b/browser/common.py index 4e8900f..45cf127 100644 --- a/browser/common.py +++ b/browser/common.py @@ -245,7 +245,7 @@ class BaseView(GenericView): @Lazy def xeditable(self): - ct = getattr(self.context, 'contentType', '') + ct = getattr(self.context, 'contentType', 'application/pdf') if ct == 'application/pdf': return False if ct.startswith('text/'):