forked from indymedia/epicyon
Following list is html formatted
parent
3413b6a476
commit
154ffff1fe
10
daemon.py
10
daemon.py
|
@ -1650,8 +1650,14 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
msg = ''
|
msg = ''
|
||||||
with open(followingFilename, 'r') as followingFile:
|
with open(followingFilename, 'r') as followingFile:
|
||||||
msg = followingFile.read()
|
msg = followingFile.read()
|
||||||
self._login_headers('text/plain', len(msg), callingDomain)
|
followingList = msg.split('\n').sort()
|
||||||
self._write(msg.encode('utf-8'))
|
followingListHtml = '<html><body>'
|
||||||
|
for followingAddress in followingList:
|
||||||
|
followingListHtml += '<h3>' + followingAddress + '</h3>'
|
||||||
|
followingListHtml += '</body></html>'
|
||||||
|
msg = followingListHtml.encode('utf-8')
|
||||||
|
self._login_headers('text/html', len(msg), callingDomain)
|
||||||
|
self._write(msg)
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.path.startswith('/about'):
|
if self.path.startswith('/about'):
|
||||||
|
|
Loading…
Reference in New Issue