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