addons14/document_page/models/document_page.py
def _get_page_index(self, link=True):
        """Return the index of a document."""
        self.ensure_one()
        index = [
            "<li>" + subpage._get_page_index() + "</li>" for subpage in self.child_ids
        ]
        r = ""
        if link:
            r = '<a href="{}">{}</a>'.format(self.backend_url, self.name)
        if index:
            r += "<ul>" + "".join(index) + "</ul>"
        return r
Return the index of a document.
Return the index of a document.
Return the index of a document .
def _get_page_index(self, link=True):
        self.ensure_one()
        index = [
            "<li>" + subpage._get_page_index() + "</li>" for subpage in self.child_ids
        ]
        r = ""
        if link:
            r = '<a href="{}">{}</a>'.format(self.backend_url, self.name)
        if index:
            r += "<ul>" + "".join(index) + "</ul>"
        return r
def _get_page_index ( self , link = True ) : self . ensure_one ( ) index = [ "<li>" + subpage . _get_page_index ( ) + "</li>" for subpage in self . child_ids ] r = "" if link : r = '<a href="{}">{}</a>' . format ( self . backend_url , self . name ) if index : r += "<ul>" + "" . join ( index ) + "</ul>" return r
Return the index of a document.
Return the index of a document .
"""Return the index of a document."""
self
link