[Paste] to interrupt serve() from WSGI application

2008-09-05 Thread Viktor Massalogin
Is it possible to interrupt the server (paste.httpserver.serve) from WSGI application? I tried to raise ServerExit, but ThreadPoolMixIn.handle_error() does not stop the server. Viktor ___ Paste-users mailing list [email protected] http://w

[Paste] Validating File Upload

2008-09-05 Thread Eric Larson
I'm trying to do a simple file upload with webob: def upload(self, environ, start_response): req = Request(environ) if req.POST.get('upload'): save_file(req.POST['upload'] res = HTTPSeeOther('/other') I get not indexable error. I can wrap things in a try/except block but I'm

Re: [Paste] Validating File Upload

2008-09-05 Thread Ian Bicking
Eric Larson wrote: > I'm trying to do a simple file upload with webob: > > def upload(self, environ, start_response): > req = Request(environ) > if req.POST.get('upload'): > save_file(req.POST['upload'] > res = HTTPSeeOther('/other') > > I get not indexable error. I can wrap