From a47e8268157717dc2105983447d4715253fbac2d Mon Sep 17 00:00:00 2001 From: helmutm Date: Sat, 12 Feb 2011 16:41:43 +0000 Subject: [PATCH] include x-pdf in list of 'read-only' resources git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4185 fd906abe-77d9-0310-91a1-e0d9ade77398 --- browser/resource.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/browser/resource.py b/browser/resource.py index d780832..b86b74c 100644 --- a/browser/resource.py +++ b/browser/resource.py @@ -229,7 +229,8 @@ class ResourceView(BaseView): def viewable(self): return True ct = self.context.contentType - return ct.startswith('image/') or ct == 'application/pdf' + return (ct.startswith('image/') or + ct in ('application/pdf', 'application/x-pdf')) # actions