示例#1
0
文件: main.py 项目: ragmondo/nike2gpx
    def post(self):
        logging.info("in GenerateGPXHandler")
        in_data = self.request.get("nike_html")
        logging.info(in_data)
        logging.info("In pickle form")
        logging.info("len is ", len(in_data))

        logging.warning("Starting  enumerate")
        in_data = remove_funnies(in_data)
        logging.warning("Ending  enumerate")

        in_data = HTMLParser.HTMLParser().unescape(in_data)
        (od,name) = nike2gpx.process(in_data)

        write_file(self.response, od.to_xml(), name.__str__())
示例#2
0
 def testNike2GPXbig(self):
     import nike2gpx,demodata
     (x,y)=nike2gpx.process(demodata.a)
     assert y == "RUN_ON__10_10_12_08_36_PM","expecting %s, got %s" % ( "RUN_ON__10_10_12_08_36_PM", y)