__filename__ = "webapp.py" __author__ = "Bob Mottram" __license__ = "AGPL3+" __version__ = "1.1.0" __maintainer__ = "Bob Mottram" __email__ = "bob@freedombone.net" __status__ = "Production" import os from webapp_utils import htmlHeaderWithExternalStyle from webapp_utils import htmlFooter def htmlFollowingList(cssCache: {}, baseDir: str, followingFilename: str) -> str: """Returns a list of handles being followed """ with open(followingFilename, 'r') as followingFile: msg = followingFile.read() followingList = msg.split('\n') followingList.sort() if followingList: cssFilename = baseDir + '/epicyon-profile.css' if os.path.isfile(baseDir + '/epicyon.css'): cssFilename = baseDir + '/epicyon.css' followingListHtml = htmlHeaderWithExternalStyle(cssFilename) for followingAddress in followingList: if followingAddress: followingListHtml += \ '
' + \ translate['Hashtag Blocked'] + '
\n' blockedHashtagForm += \ ' \n' blockedHashtagForm += '