def handle_data(self):
        if self.path == '/':
            p = '/html/swfu.html'
        elif self.path.endswith('upload.html'):
            self.handleUpload()
            return
        else:
            p = self.path
        path = self.translate_path(p)
        if not os.path.exists(path):
            p = '/html'+p
            path = self.translate_path(p)
        ctype = self.guess_type(path)
        try:
            f = open(path)
        except __HOLE__:
            print 'File not found %s' % path
            self.send_error(404, 'File not found')
            return
        self.send_response(200)
        self.send_header('Content-type', ctype)
        self.send_header('Last-Modified', self.date_time_string())
        self.end_headers()
        self.copyfile(f, self.wfile)
        f.close()
dataset/ETHPy150Open anandology/pyjamas/examples/misc/swfupload/server.py/TestRequestHandler.handle_data