Closed GoogleCodeExporter closed 8 years ago
Hm, I thought I had that figured out, I updated the templates in r165 please
try
them out, thanks
Original comment by spei...@gmail.com
on 31 Aug 2008 at 3:32
r165 didn't quite make it :(
line 20, in <module>
<% if hasattr(track,laps) %>
TypeError: hasattr(): attribute name must be string
Traceback (most recent call last):
File "gh600_console.py", line 245, in <module>
main()
File "gh600_console.py", line 153, in main
choose()
File "gh600_console.py", line 64, in choose
ef.exportTracks(tracks, merge = merge)
File "/home/zingo/bin/globalsat/gh6xx/globalsat/src/gh600.py", line 451, in
exportTracks
self.exportTrack(track, **kwargs)
File "/home/zingo/bin/globalsat/gh6xx/globalsat/src/gh600.py", line 444, in exportTrack
self.__export([track], **kwargs)
File "/home/zingo/bin/globalsat/gh6xx/globalsat/src/gh600.py", line 468, in __export
rendered = t.render(tracks = tracks, track = tracks[0])
File "/home/zingo/bin/globalsat/gh6xx/globalsat/src/templates.py", line 508, in render
exec self.code in context.runtime, context
File "/home/zingo/bin/globalsat/gh6xx/globalsat/src/exportTemplates/fitlog.txt",
line 20, in <module>
<% if hasattr(track,laps) %>
TypeError: hasattr(): attribute name must be string
zingo@dual:~/bin/globalsat/gh6xx/globalsat/src$
Original comment by ZingoAnd...@gmail.com
on 31 Aug 2008 at 3:40
ahh geez, I should really check things before I check them in, please try again.
Original comment by spei...@gmail.com
on 31 Aug 2008 at 6:59
works greate now, thanx for fixing so fast :)
If you add a "-" in the return of modelstring in gh600.py the autodetection
also work
like...
def getProductModel(self):
try:
response = self._querySerial('whoAmI')
watch = Utilities.hex2chr(response[6:-4])
product, model = watch[:-1], watch[-1:]
return product
except GH600SerialException: #no response received, assuming command was not
understood => old firmware
return "GH-615" #<---- e.g. change "GH615" to "GH-615"
Original comment by ZingoAnd...@gmail.com
on 31 Aug 2008 at 10:08
ohyeah, thanks, fixed, so I am closing here now
Original comment by spei...@gmail.com
on 31 Aug 2008 at 10:47
Original issue reported on code.google.com by
ZingoAnd...@gmail.com
on 31 Aug 2008 at 3:17