List Info

Thread: setting tempfile.tempdir




setting tempfile.tempdir
user name
2006-04-10 18:40:36
Hi,
while a http upload I got a Disk quota exceeded exception,
thrown from
the cgi module.
The tempdir was by default set to /tmp

Where is the best place in a pylons application to set the
tempfile.tempdir path?

cheers,
Alex.


File
'/home/agreif/Python-2.4.2/lib/python2.4/site-packages/Past
e-0.5-py2.4.egg/paste/exceptions/errormiddleware.py',
line 138 in __call__
 app_iter = self.application(environ, detect_start_response)
File
'/home/agreif/Python-2.4.2/lib/python2.4/site-packages/Past
e-0.5-py2.4.egg/paste/httpexceptions.py',
line 619 in __call__
 self.send_http_response, catch=HTTPException)
File
'/home/agreif/Python-2.4.2/lib/python2.4/site-packages/Past
e-0.5-py2.4.egg/paste/wsgilib.py',
line 112 in catch_errors_app
 app_iter = application(environ, start_response)
File
'/home/agreif/Python-2.4.2/lib/python2.4/site-packages/Pylo
ns-0.8-py2.4.egg/pylons/middleware.py',
line 23 in __call__
 return self.app(environ, start_response)
File
'/home/agreif/Python-2.4.2/lib/python2.4/site-packages/Past
eDeploy-0.5-py2.4.egg/paste/deploy/config.py',
line 157 in __call__
 app_iter = self.application(environ, start_response)
File
'/home/agreif/Python-2.4.2/lib/python2.4/site-packages/Pylo
ns-0.8-py2.4.egg/pylons/wsgiapp.py',
line 35 in __call__
 return self.app.handle(environ, start_response)
File
'/home/agreif/Python-2.4.2/lib/python2.4/site-packages/Mygh
ty-1.0.1-py2.4.egg/myghty/http/WSGIHandler.py',
line 59 in handle
 httpreq = WSGIRequest(environ, start_response)
File
'/home/agreif/Python-2.4.2/lib/python2.4/site-packages/Mygh
ty-1.0.1-py2.4.egg/myghty/http/WSGIHandler.py',
line 87 in __init__
 keep_blank_values = True
File '/home/agreif/Python-2.4.2/Lib/cgi.py', line 526 in
__init__
 self.read_multi(environ, keep_blank_values, strict_parsing)
File '/home/agreif/Python-2.4.2/Lib/cgi.py', line 651 in
read_multi
 environ, keep_blank_values, strict_parsing)
File '/home/agreif/Python-2.4.2/Lib/cgi.py', line 528 in
__init__
 self.read_single()
File '/home/agreif/Python-2.4.2/Lib/cgi.py', line 661 in
read_single
 self.read_lines()
File '/home/agreif/Python-2.4.2/Lib/cgi.py', line 683 in
read_lines
 self.read_lines_to_outerboundary()
File '/home/agreif/Python-2.4.2/Lib/cgi.py', line 730 in
read_lines_to_outerboundary
 self.__write(odelim + line)
File '/home/agreif/Python-2.4.2/Lib/cgi.py', line 693 in
__write
 self.file.write(line)
exceptions.IOError: [Errno 122] Disk quota exceeded


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discussgooglegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )