""" gps_template_gtalk.py generic gtalk template for GPS event """ def template(pretty = False): """ EVENT id=$id_here$ type=$type_here$ time_stamp=$time_stamp_here$ entity=$entity_here$ latitude=$latitude_here$ longitude=$longitude_here$ altitude=$altitude_here$ speed=$speed_here$ course=$course_here$ valid=$valid_here$ """ return compress_template(template.__doc__) def compress_template(s): return ', '.join(s.split()) if __name__ == "__main__": print template(True) print template()