title: No usable temporary directory found
body: <p>I am trying to find a temp directory ,
  but when i am trying to get the directory using</p>
  
  <pre><code>tempfile.gettempdir()
  </code></pre>
  
  <p>it's giving me error of</p>
  
  <pre><code> File "/usr/lib/python2.6/tempfile.py", line 254, in gettempdir
      tempdir = _get_default_tempdir()
    File "/usr/lib/python2.6/tempfile.py", line 201, in _get_default_tempdir
      ("No usable temporary directory found in %s" % dirlist))
  IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home/openerp/openerp-server']
  </code></pre>
  
  <p>The permission on the directory is 777 owned by root.</p>