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):
- implement guards API so that conversion to certain
formats require certain permission
"""
pass
raise NotImplementedError
security.declareProtected(Permissions.View, 'getSearchableText')
def getSearchableText(self, md=None):
......@@ -1039,8 +1039,8 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
mime, data = self.convert(format='txt')
return data
security.declareProtected(Permissions.View, 'asHTML')
def asHTML(self):
security.declareProtected(Permissions.View, 'asEntireHTML')
def asEntireHTML(self):
"""
Returns a complete HTML representation of the document
(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