Commit 3494da8a authored by Jean-Paul Smets's avatar Jean-Paul Smets

More documentation.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12156 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a97099c3
......@@ -320,13 +320,22 @@ class Document(XMLObject):
def index_html(self, REQUEST, RESPONSE, format=None, **kw):
"""
We follow here the standard Zope API for files and images
and extend it to support format conversion.
format - the format specied in the form of an extension
and extend it to support format conversion. The idea
is that an image which ID is "something.jpg" should
ne directly accessible through the URL
/a/b/something.jpg. The same is true for a file and
for any document type which primary purpose is to
be used by a helper application rather than displayed
as HTML in a web browser. Exceptions to this approach
include Web Pages which are intended to be primarily rendered
withing the layout of a Web Site or withing a standard ERP5 page.
Please refer to the index_html of TextDocument.
format - the format specified in the form of an extension
string (ex. jpeg, html, text, txt, etc.)
"""
pass
security.declareProtected(Permissions.View, 'getSearchableText')
def getSearchableText(self, md=None):
"""
......
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