def __setCachedToken(self, xml):

        path = self.__getCachedTokenPath()
        if not os.path.exists(path):
            os.makedirs(path)

        f = file(self.__getCachedTokenFilename(), "w")
        f.write(xml)
        f.close()


    #-----------------------------------------------------------------------
Called by the proxy object when the dialog is closed.
dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/MachineLearning/query_imgs/flickrapi2.py/FlickrAPI.__setCachedToken--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/widgets/file_dialog.py/FileDialog._handle_close