Skip to content

Commit

Permalink
Added favicon to CrossMgrVideo web pages.
Browse files Browse the repository at this point in the history
Added utf8 to text file open calls.
  • Loading branch information
esitarski authored and kimble4 committed Jun 3, 2024
1 parent 86cb6c9 commit e9786a7
Show file tree
Hide file tree
Showing 19 changed files with 49 additions and 35 deletions.
2 changes: 1 addition & 1 deletion CallupSeedingMgr/CallupSeedingMgrSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def make_inno_version():
'AppUpdatesURL': "http://www.sites.google.com/site/crossmgrsoftware/downloads/",
'VersionInfoVersion': AppVerName.split()[1],
}
with open('inno_setup.txt', 'w') as f:
with open('inno_setup.txt', 'w', encoding='utf8') as f:
for k, v in setup.items():
f.write( '{}={}\n'.format(k,v) )
make_inno_version()
Expand Down
2 changes: 1 addition & 1 deletion CallupSeedingMgr/HelpIndex.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def addDocument( fname, section, lastTitle, textCur ):
from whoosh.qparser import QueryParser
ix = open_dir( indexDir, readonly=True )

with ix.searcher() as searcher, open('search.html', 'w') as f:
with ix.searcher() as searcher, open('search.html', 'w', encoding='utf8') as f:
query = QueryParser('content', ix.schema).parse('fastest lap')
results = searcher.search(query, limit=20)
f.write( '<table><tr><th></th><th align="left">Section</th><th align="left">Match</th></tr>\n' )
Expand Down
6 changes: 3 additions & 3 deletions CallupSeedingMgr/UpdateDependencies.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

def UpdateDependencies():
with open('Dependencies.py') as d:
with open('Dependencies.py', encoding='utf8') as d:
for line in d:
line = line.strip()
if not line:
Expand All @@ -15,11 +15,11 @@ def UpdateDependencies():
except Exception:
pass

with open(os.path.join('..', fname)) as fc:
with open(os.path.join('..', fname), encoding='utf8') as fc:
contents = fc.read()
if fname in ('Utils.py', 'HelpIndex.py'):
contents = contents.replace("'CrossMgr", "'CallupSeedingMgr").replace('CrossMgrImages', 'CallupSeedinMgrImages')
with open(fname, 'w') as fc:
with open(fname, 'w', encoding='utf8') as fc:
fc.write( contents )

if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion CallupSeedingMgr/helptxt/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def CompileHelp( dir = '.' ):

contentDiv = '<div class="content">'

with open('Links.md') as f:
with open('Links.md', encoding='utf8') as f:
links = f.read()

for fname in glob.glob("./*.md"):
Expand Down
2 changes: 1 addition & 1 deletion ChipImport.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def DoChipImport( fname, parseTagTime, startTime = None,

raceStart = None

with open(fname) as f, Model.LockRace() as race:
with open(fname, encoding='utf8') as f, Model.LockRace() as race:
year, month, day = [int(n) for n in race.date.split('-')]
raceDate = datetime.date( year=year, month=month, day=day )
JChip.reset( raceDate )
Expand Down
4 changes: 2 additions & 2 deletions CrossMgrVideo/AddExifToJpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def AddExifToJpeg( jpeg, ts, comment ):

if __name__ == '__main__':
fname = os.path.join( 'photos', '0001-20190209T094625-Capture.jpg' )
with open(fname, 'rb') as f:
with open(fname, 'rb', encoding='utf8') as f:
jpeg = f.read()
fnameOut = os.path.splitext(fname)[0] + '-exif.jpg'
with open(fnameOut, 'wb') as f:
with open(fnameOut, 'wb', encoding='utf8') as f:
f.write( AddExifToJpeg( jpeg, datetime.datetime.now(), 'This is a comment' ) )
13 changes: 10 additions & 3 deletions CrossMgrVideo/CrossMgrVideoHtml/PhotoPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

<head>

<meta charset="UTF-8">
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTCtCg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MhQSYPCYUlB/dmOPAZsWjydcClxX7CXCz79CCKanPlQmllxx+fd3vcERyXKtsviLDYA/ZcF1kV2O3l6ZCXSlvE0+L2MQMt9RYAAP4FGBszTCzqX7sAAAAASUVORK5CYII=" />
<meta name="author" content="Edward Sitarski">
<meta name="copyright" content="Edward Sitarski">
<meta name="generator" content="CrossMgrVideo">
<meta name="keywords" content="CrossMgr, Cycling, Race, Results, Photos">

<style>
.selected {
background-color: rgb(255,255,153);
Expand Down Expand Up @@ -103,7 +110,7 @@
}
}

iSelected = iRow;
iSelected = iRow; // Global variable.
if( iSelected < matched.length ) {
img = new Image();
img.addEventListener('load', () => scaledBitmap.SetImage(img) );
Expand All @@ -127,7 +134,7 @@
function do_search() {
const search_text = document.getElementById('id_search').value.trim().toLowerCase();

matched = [];
matched = []; // Global variable.
if( search_text ) {
const attrs = ['bib', 'first_name', 'last_name', 'machine', 'team'];
for( const info of photo_info ) {
Expand Down Expand Up @@ -268,7 +275,7 @@
window.addEventListener('resize', do_resize );
do_search();
}

</script>
</head>
<body onload="onload();">
Expand Down
8 changes: 7 additions & 1 deletion CrossMgrVideo/CrossMgrVideoHtml/main.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<html>
<head>

<meta charset="UTF-8">
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTCtCgrAAAAGkklEQVRYR9WXaVBTVxiGT0ggBEGgShexdSlSKBWshTqDVapTsWKVqlCxxU6rDosCihYLCrKEACFhrYTdsAzIGnbHiEgJSMPiaMVBiwouiFZRW38ILnfaE84lhpMEbjR2pt88P5J7v++8z9yT3OQCv4wBrRMovJHY/deUFFzoHXkaQBBeirwWoaCim1i2Oo72/j7yzF9jIZ+Uq04eb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ah+GSHPyD4646RcaJwTOjrkP+5xapXypkT6MkJOn0k+0q+yZWHk27KyJlJqyzoxJTb6jW/rtdLkTljY5AT/JI2bk8mjcbXOfqbAigkvsyZCB70kPHo8tpAW4dK4DswGqkKBvIvx+nw0+YNu9j9arW26QrRyDJ3ytyxssxjNBNsdJZfRam3VzUfrUxWKXFmJBsgFXkNpKlTxfxXyM8ohX2lYlIT2ZPSxc04KhHlZq+MoCkWbHoZtiWtF5HvKpULIP6P/UPbp3Py0+qLAnvIvhkQWz2oY6EeqcZ0bRaGE99JRJ88wgTxErdCUTAhKFBbwO0q+HhaZy38mMagLpc+PRp2ILJsw8sRUhfrBlQp7LFsl1IWy54ehTgXijnl4kKfVF2rGg9XxakIyUk0jyQ41hdrAo8ppRA0er8yrC0FC6Slkk6pCPWB7ePJudnR2quftspmYhCKvKJTA5Bzb4U52qCnUKRMiiUiO5+2S5n38tPrFP0CiwZQQzyHEcxtdt6EBclp9KQuVLvMhz01aqFlBaJwANqe9aD3R+g3RFSz/Y9+4OQYNkNPqS1Eo/Z1Q8iiFQiMqhCDXmqLkKhoLzePANr5uTJPXBvIQtSKFAjhJmA0nJUH5qVkDobm84sVx5BtNihQa7fZrbXKMTtsrF2qv5mA2EOpCL12k0PPr04lBABk4NzspLzE0OetJx4Qn+b9PR56tjy5eJ+v+L4Q4gj2nmx2GL5k8u0nPrhQViGpGO9kvhLrCEw7z4WULWZuMBoqd2eQCWq26Dd+TQmibCkvdBnvt0srEkJq6UvmDc1NFDGrwDUrhscgf/Crn3eQyWqqKVd5o5USDaNAoXi5tWTx8ybStzQsJQZqP5yMhQSYPCYUlB/dmOPAZsWjydcClxX7CXCz79CCKanPlQmllxx+fd3vcERyXKtsviLDYA/ZcF1kV2O3l6ZCXSlvE0+L2MQMt9RYAAP4FGBszTCzqX7sAAAAASUVORK5CYII=" />
<meta name="author" content="Edward Sitarski">
<meta name="copyright" content="Edward Sitarski">
<meta name="generator" content="CrossMgrVideo">
<meta name="keywords" content="CrossMgr, Cycling, Race, Results, Photos">

<style type="text/css">
body { font-family: sans-serif; }

Expand Down
2 changes: 1 addition & 1 deletion CrossMgrVideo/CrossMgrVideoSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def make_inno_version():
'AppUpdatesURL': "https://github.com/kimble4/CrossMgr",
'VersionInfoVersion': AppVerName.split()[1],
}
with open('inno_setup.txt', 'w') as f:
with open('inno_setup.txt', 'w', encoding='utf8') as f:
for k, v in setup.items():
f.write( '{}={}\n'.format(k,v) )
make_inno_version()
Expand Down
4 changes: 2 additions & 2 deletions CrossMgrVideo/HelpIndex.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def addDocument( fname, section, lastTitle, textCur ):

# Extract content sections from the html pages.
for f in glob.iglob( os.path.join(htmlDocDir, '*.html') ):
doc = BeautifulSoup( open(f).read(), 'html.parser' )
doc = BeautifulSoup( open(f, encoding='utf8').read(), 'html.parser' )
div = doc.find('div', class_='content')
if not div:
continue
Expand Down Expand Up @@ -84,7 +84,7 @@ def addDocument( fname, section, lastTitle, textCur ):
from whoosh.qparser import QueryParser
ix = open_dir( indexDir, readonly=True )

with ix.searcher() as searcher, open('search.html', 'w') as f:
with ix.searcher() as searcher, open('search.html', 'w', encoding='utf8') as f:
query = QueryParser('content', ix.schema).parse('fastest lap')
results = searcher.search(query, limit=20)
f.write( '<table><tr><th></th><th align="left">Section</th><th align="left">Match</th></tr>\n' )
Expand Down
6 changes: 3 additions & 3 deletions CrossMgrVideo/MainWin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1243,12 +1243,12 @@ def publish_web_photos( dirname, infoList, singleFile ):
fname = os.path.join( dirname, 'index.html' )
ftemplate = os.path.join( Utils.getHtmlFolder(), 'PhotoPage.html' )

with open(fname, 'w') as fOut, open(ftemplate) as fIn:
with open(fname, 'w', encoding='utf8') as fOut, open(ftemplate, encoding='utf8') as fIn:
for line in fIn:
lineStrip = line.strip()
if lineStrip == '<script src="ScaledBitmap.js"></script>':
fOut.write( '<script>\n' )
with open( os.path.join(Utils.getHtmlFolder(), 'ScaledBitmap.js') ) as fsb:
with open( os.path.join(Utils.getHtmlFolder(), 'ScaledBitmap.js'), encoding='utf8' ) as fsb:
fOut.write( fsb.read() )
fOut.write( '\n</script>\n' )
continue
Expand Down Expand Up @@ -2409,7 +2409,7 @@ def MainLoop():
pass

try:
with open(redirectFileName, 'a') as pf:
with open(redirectFileName, 'a', encoding='utf8') as pf:
pf.write( '********************************************\n' )
pf.write( '{}: {} Started.\n'.format(now().strftime('%Y-%m-%d_%H:%M:%S'), AppVerName) )
except Exception:
Expand Down
8 changes: 4 additions & 4 deletions CrossMgrVideo/UpdateDependencies.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

def UpdateDependencies():
with open('Dependencies.py') as d:
with open('Dependencies.py', encoding='utf8') as d:
for line in d:
line = line.strip()
if not line:
Expand All @@ -15,12 +15,12 @@ def UpdateDependencies():
except Exception:
pass

with open(os.path.join('..', fname)) as fc:
with open(os.path.join('..', fname), encoding='utf8') as fc:
contents = fc.read()
if fname in ('Utils.py', 'HelpIndex.py'):
contents = contents.replace("'CrossMgr", "'CrossMgrVideo")
with open(fname, 'w') as fc:
with open(fname, 'w', encoding='utf8') as fc:
fc.write( contents )

if __name__ == '__main__':
UpdateDependencies()
UpdateDependencies()
2 changes: 1 addition & 1 deletion CrossMgrVideo/Version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
AppVerName="CrossMgrVideo 3.0.57-private"
AppVerName="CrossMgrVideo 3.0.58-private"
2 changes: 1 addition & 1 deletion CrossMgrVideo/WebServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def getMainPage( dateStr=None ):
global mainPage

if True or not mainPage:
with open( os.path.join(Utils.getHtmlFolder(), 'main.html') ) as f:
with open( os.path.join(Utils.getHtmlFolder(), 'main.html'), encoding='utf8' ) as f:
mainPage = f.read()

if dateStr:
Expand Down
6 changes: 3 additions & 3 deletions MainWin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2842,7 +2842,7 @@ def menuNew( self, event ):

# Try to open the file.
try:
with open(fileName, 'w') as fp:
with open(fileName, 'wb') as fp:
pass
except IOError:
Utils.MessageOK( self, '{}\n\n "{}"'.format(_('Cannot Open File'),fileName), _('Cannot Open File'), iconMask=wx.ICON_ERROR )
Expand Down Expand Up @@ -3060,7 +3060,7 @@ def openRaceDBExcel( self, fname, overwriteExisting=True ):

# Try to open the file.
try:
with open(fileName, 'w'):
with open(fileName, 'wb'):
pass
except IOError:
Utils.MessageOK(self, '{}\n\n "{}".'.format(_('Cannot Open File'), fileName), _('Cannot Open File'), iconMask=wx.ICON_ERROR )
Expand Down Expand Up @@ -3388,7 +3388,7 @@ def menuSimulate( self, event=None, userConfirm=True, isTimeTrial=False ):

# Test if we can write something there.
try:
with open(fName, 'w'):
with open(fName, 'wb'):
pass
except IOError:
Utils.MessageOK(self, '{} "{}".'.format(_('Cannot open file'), fName), _('File Open Error'), iconMask=wx.ICON_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion ReadSignOnSheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def onPageChanging( self, evt ):
if page == self.fileNamePage:
fileName = self.fileNamePage.getFileName()
try:
open(fileName).close()
open(fileName, 'rb').close()
self.sheetNamePage.setFileName(self.fileNamePage.getFileName())
except IOError:
if fileName == '':
Expand Down
6 changes: 3 additions & 3 deletions SeriesMgr/UpdateDependencies.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

def UpdateDependencies():
with open('Dependencies.py') as d:
with open('Dependencies.py', encoding='utf8') as d:
for line in d:
line = line.strip()
if not line:
Expand All @@ -15,11 +15,11 @@ def UpdateDependencies():
except Exception:
pass

with open(os.path.join('..', fname), encoding='utf-8') as fc:
with open(os.path.join('..', fname), encoding='utf8') as fc:
contents = fc.read()
if fname in ('Utils.py', 'HelpIndex.py'):
contents = contents.replace("'CrossMgr", "'SeriesMgr").replace('CrossMgrImages', 'SeriesMgrImages')
with open(fname, 'w', encoding='utf-8') as fc:
with open(fname, 'w', encoding='utf8') as fc:
fc.write( contents )

if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion SprintMgr/UpdateDependencies.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

def UpdateDependencies():
with open('Dependencies.py') as d:
with open('Dependencies.py', encoding='utf-8') as d:
for line in d:
line = line.strip()
if not line:
Expand Down
5 changes: 3 additions & 2 deletions Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,11 @@ def initTranslation():
except Exception:
pass

extra_fields = {
# Keep these here for translations.
(
_('Search'),
_('Finisher'), _('DNF'), _('PUL'), _('DNS'), _('DQ'), _('OTL'), _('NP'),
}
)

initTranslation()

Expand Down

0 comments on commit e9786a7

Please sign in to comment.