Extra parameter

main
Bob Mottram 2020-02-25 13:44:10 +00:00
parent 8e8261e2cf
commit 773b695068
2 changed files with 5 additions and 3 deletions

View File

@ -89,7 +89,8 @@ def htmlBlogPostContent(baseDir: str,httpPrefix: str,translate: {}, \
def htmlBlogPost(baseDir: str,httpPrefix: str,translate: {}, \
nickname: str,domainFull: str,postJsonObject: {}) -> str:
nickname: str,domain: str,domainFull: str, \
postJsonObject: {}) -> str:
"""Returns a html blog post
"""
blogStr=''
@ -103,7 +104,7 @@ def htmlBlogPost(baseDir: str,httpPrefix: str,translate: {}, \
blogStr+= \
htmlBlogPostContent(baseDir,httpPrefix,translate, \
nickname,domainFull,postJsonObject, \
nickname,domain,domainFull,postJsonObject, \
None,False)
return blogStr+htmlFooter()
@ -158,7 +159,7 @@ def htmlBlogPage(session, \
blogStr+= \
htmlBlogPostContent(baseDir,httpPrefix,translate, \
nickname,domainFull,item, \
nickname,domain,domainFull,item, \
None,True)
return blogStr+htmlFooter()

View File

@ -1110,6 +1110,7 @@ class PubServer(BaseHTTPRequestHandler):
self.server.httpPrefix, \
self.server.translate, \
nickname,self.server.domain, \
self.server.domainFull, \
postJsonObject)
if msg!=None:
msg=msg.encode()