diff --git a/Scripts/CentOS-Web/Apps/xhtml.py b/Scripts/CentOS-Web/Apps/xhtml.py index 051a43f..ce958c6 100755 --- a/Scripts/CentOS-Web/Apps/xhtml.py +++ b/Scripts/CentOS-Web/Apps/xhtml.py @@ -28,9 +28,7 @@ import cgi import cgitb; cgitb.enable() class Page: - """Xhtml page modeling. - - """ + """Xhtml page modeling.""" def __init__(self): @@ -321,7 +319,7 @@ class Page: content = self.tag('span', {'class':'last'}, [16,1], self.tag('a', attrs[i], [20, 1], names[i]), 1) else: content = self.tag('span', '', [16,1], self.tag('a', attrs[i], [20, 1], names[i], 0), 1) - links = links + content + links += content return self.tag('div', {'class': 'trail'}, [12,1], links, 1) @@ -370,6 +368,7 @@ class Page: """Retruns link to page license.""" license = 'Creative Commons Attribution-Share Alike 3.0 Unported License' license = self.tag('a', {'href': 'http://creativecommons.org/licenses/by-sa/3.0/'}, [0,0], license) + '.' + return license @@ -393,6 +392,51 @@ class Page: return content + def page_admonition(self, title='Note', subtitle="", content=""): + """Returns page admonition. + + Arguments: + + title: Admonition's title. + + subtitle: Admonition's subtitle. The value of this argument is + concatenated on the right side of title using a colon (:) + as separator. Notice that this value is expanded inside + the