Commit 3d4d0120 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Renames asHTML to asEntireHTML in order to prevent conflict with ZPublisher

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15834 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 177639bf
...@@ -447,7 +447,7 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin): ...@@ -447,7 +447,7 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
- implement guards API so that conversion to certain - implement guards API so that conversion to certain
formats require certain permission formats require certain permission
""" """
pass raise NotImplementedError
security.declareProtected(Permissions.View, 'getSearchableText') security.declareProtected(Permissions.View, 'getSearchableText')
def getSearchableText(self, md=None): def getSearchableText(self, md=None):
...@@ -1039,8 +1039,8 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin): ...@@ -1039,8 +1039,8 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
mime, data = self.convert(format='txt') mime, data = self.convert(format='txt')
return data return data
security.declareProtected(Permissions.View, 'asHTML') security.declareProtected(Permissions.View, 'asEntireHTML')
def asHTML(self): def asEntireHTML(self):
""" """
Returns a complete HTML representation of the document Returns a complete HTML representation of the document
(with body tags, etc.). Adds if necessary a base (with body tags, etc.). Adds if necessary a base
......
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