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
This commit is contained in:
helmutm 2007-03-07 15:19:50 +00:00
parent 00aa042550
commit 89ffe21b86

View file

@ -245,7 +245,7 @@ class BaseView(GenericView):
@Lazy @Lazy
def xeditable(self): def xeditable(self):
ct = getattr(self.context, 'contentType', '') ct = getattr(self.context, 'contentType', 'application/pdf')
if ct == 'application/pdf': if ct == 'application/pdf':
return False return False
if ct.startswith('text/'): if ct.startswith('text/'):