More generic

main
Bob Mottram 2020-11-03 11:09:20 +00:00
parent 7369f62a8e
commit 120a3329c2
1 changed files with 7 additions and 3 deletions

View File

@ -5871,12 +5871,16 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
theme = '' theme = ''
else: else:
theme = '_' + theme theme = '_' + theme
themeRightColumnImageFilename = \ themeRightImageFile, themeRightColumnImageFilename = \
baseDir + '/img/right_col_image' + theme + '.png' getImageFile(baseDir, 'right_col_image', baseDir + '/img',
nickname, domain)
if os.path.isfile(themeRightColumnImageFilename): if os.path.isfile(themeRightColumnImageFilename):
rightColumnImageFilename = \
baseDir + '/accounts/' + \
nickname + '@' + domain + '/' + themeRightImageFile
copyfile(themeRightColumnImageFilename, copyfile(themeRightColumnImageFilename,
rightColumnImageFilename) rightColumnImageFilename)
rightImageFile = 'right_col_image.png' rightImageFile = themeRightImageFile
# show the image at the top of the column # show the image at the top of the column
editImageClass = 'rightColEdit' editImageClass = 'rightColEdit'