Browse Source

tmc_direction to multistr instead of location_text

dev
Clemens Richter 9 years ago
parent
commit
11d164cdb4
  1. 7
      python/tmc_classes.py

7
python/tmc_classes.py

@ -671,7 +671,7 @@ class tmc_dict:
color="gray"
if message.location.has_koord:
if loc==None:#first message at this location
map_tag+='<h3 title="lcn:%i" style="padding: 0px;margin: 0px;">'%message.location.lcn
map_tag+='<h3 title="lcn:%i" style="padding: 0px;margin: 0px;">'%(message.location.lcn)
map_tag+=message.location_text()
map_tag+='</h3>'
if message.cancellation_time==None:
@ -779,6 +779,7 @@ class tmc_message:
except AttributeError:
multi="[multi incomplete]"
#print("got multistring")
multi+=", dir:%i"%self.tmc_dir
return str(multi)
def info_str(self):
info=""
@ -837,7 +838,7 @@ class tmc_message:
text+=templates[language+"_2b"].format(D=self.location.first_name)
else:
text+=templates[language+"_2a"].format(D=self.location.first_name,E=offset_loc_name)
text+=", dir:"+str(self.tmc_dir)
#text+=", dir:%i"%self.tmc_dir
#LocCode: RefLine: RoadNr
#A
#LocCode:RefLine:Name2
@ -967,7 +968,7 @@ class tmc_message:
self.tmc_DP=data.uint
#label==1: control codes
elif label==1 and data.uint==2:
last_event.change_directionality#change directionality
last_event.change_directionality()#change directionality of event
elif label==1 and data.uint==5:
self.tmc_D=1#set diversion bit
elif label==1 and data.uint==6:

Loading…
Cancel
Save