Commit b68d4694 authored by Bartek Górny's avatar Bartek Górny

some fixes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9519 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5fd2a423
...@@ -94,6 +94,7 @@ class CachingMixin: ...@@ -94,6 +94,7 @@ class CachingMixin:
self.cached_mime[format]=mime self.cached_mime[format]=mime
if data is not None: if data is not None:
self.cached_data[format]=data self.cached_data[format]=data
self._p_changed=1
def cacheGet(self,format): def cacheGet(self,format):
''' '''
...@@ -123,7 +124,7 @@ class CachingMixin: ...@@ -123,7 +124,7 @@ class CachingMixin:
data=data.next data=data.next
else: else:
ln='no data!!!' ln='no data!!!'
s+='<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>' % (f,str(ln),str(t),str(self.isFileChanged(f))) s+='<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>' % (f,str(ln),str(t),'-')
s+='</table>' s+='</table>'
return s return s
......
...@@ -87,6 +87,7 @@ class PdfDocument(DMSFile, CachingMixin): ...@@ -87,6 +87,7 @@ class PdfDocument(DMSFile, CachingMixin):
SearchableText=getSearchableText SearchableText=getSearchableText
security.declareProtected(Permissions.View, 'getHtmlRepresentation')
def getHtmlRepresentation(self, force=0): def getHtmlRepresentation(self, force=0):
''' '''
get simplified html version to display get simplified html version to display
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment