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
This commit is contained in:
helmutm 2011-02-12 16:41:43 +00:00
parent bdf27fb88b
commit a47e826815

View file

@ -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