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:
parent
bdf27fb88b
commit
a47e826815
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue