Exemple #1
0
 def visit_stroke(self, node):
     node.xml = "<stroke>" + xstr(node.stroke) + "</stroke>"
Exemple #2
0
 def visit_interval(self, node):
     node.xml = "<time>" + xstr(node.minutes * 60 + node.seconds) + "</time>"
Exemple #3
0
 def visit_zone(self, node):
     node.xml = "<zone>" + xstr(node.zone) + "</zone>"
Exemple #4
0
 def visit_reps(self, node):
     node.xml = "<reps>" + xstr(node.reps) + "</reps>" 
Exemple #5
0
 def visit_distance(self, node):
     node.xml = "<distance>" + xstr(node.distance) + "</distance>"
Exemple #6
0
 def visit_interval(self, node):
     node.json = '"time": ' + xstr(node.minutes * 60 + node.seconds)
Exemple #7
0
 def visit_zone(self, node):
     if node.zone:
         node.json = '"zone": "' + xstr(node.zone) + '",'
     else:
         node.json = '"zone": null, '
Exemple #8
0
 def visit_stroke(self, node):
     if node.stroke:
         node.json = '"stroke": "' + xstr(node.stroke) + '", '
     else:
         node.json = '"stroke": null, '
Exemple #9
0
 def visit_distance(self, node):
     node.json = '"distance": ' + xstr(node.distance) + ', '
Exemple #10
0
 def visit_reps(self, node):
     node.json = '"reps": '  + xstr(node.reps) + ', '