[cse491] what happened to wsgi standards?

C. Titus Brown ctb at msu.edu
Thu Oct 29 18:00:21 PDT 2009


On Thu, Oct 29, 2009 at 07:41:17PM -0400, Ryan Kelly wrote:
> Hey Titus,
> 	I am trying to start homework 8 and looking over the specs, how am I  
> passing in a path to the FileServer class and also passing in the  
> environ and start_response variable necessary to make it wsgi  
> compatible? Shouldn't we just be using wsgi standards and using the  
> PATH_INFO key in the environ dict? Am I missing something?

Right -- good point.

The FileServer object should be a WSGI-compliant call-able.  One simple
way to do this is to provide a __call__ method that takes environ and
start_response.

See the lab notes from, umm, two weeks ago for details, or ping me again...

cheers,
--titus
-- 
C. Titus Brown, ctb at msu.edu



More information about the cse491-fall-2009 mailing list