From 87d8369bb7b6fd32503cd90aded027be53ca976f Mon Sep 17 00:00:00 2001 From: helmutm Date: Sat, 12 Feb 2011 16:45:37 +0000 Subject: [PATCH] include x-pdf in list of 'read-only' resources git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4186 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 f341def..d485e4c 100644 --- a/browser/common.py +++ b/browser/common.py @@ -634,7 +634,7 @@ class BaseView(GenericView, I18NView): @Lazy def xeditable(self): ct = getattr(self.context, 'contentType', '') - if not ct or ct == 'application/pdf': + if not ct or ct in ('application/pdf', 'application/x-pdf'): return False if ct.startswith('text/') and ct != 'text/rtf': return checkPermission('loops.ManageSite', self.context)