Ticket #2112: json_api_patch.diff

File json_api_patch.diff, 453 bytes (added by baconseed, 12 years ago)

Patch to resolve /tmp/ issues

  • (a) json_api.py vs. (b) (current

    a b  
    661661                log.error("Reason: %s", result.getErrorMessage()) 
    662662            return result 
    663663 
    664         tmp_file = os.path.join(tempfile.gettempdir(), url.split("/")[-1]) 
     664        tempdir = tempfile.mkdtemp(prefix="delugeweb-") 
     665        tmp_file = os.path.join(tempdir, url.split("/")[-1]) 
    665666        log.debug("filename: %s", tmp_file) 
    666667        headers = {} 
    667668        if cookie: