def get(self, nodeid):
        "Retrieve the ways associated with a node."

        elem = self.datastore.fetch(C.NODE, nodeid)
        if elem is None:
            raise tornado.web.HTTPError(404)

        osm = new_osm_response()

        wayset = filter_references(C.WAY, [elem])
        if len(wayset) > 0:
            ways = self.datastore.fetch_keys(C.WAY,
                                             [w for w in wayset])
            for (st,w) in ways:
                if st:
                    w.build_response(osm)

        self.set_header(C.CONTENT_TYPE, C.TEXT_XML)
        self.write(response_to_xml(osm))
dataset/ETHPy150Open MapQuest/mapquest-osm-server/src/python/frontend/osmelement.py/OsmWaysForNodeHandler.get/original