[cse491] HW2, Part 5

C. Titus Brown ctb at msu.edu
Mon Sep 21 17:52:36 PDT 2009


On Mon, Sep 21, 2009 at 04:28:12PM -0400, russcait at msu.edu wrote:
> Just to make sure I'm not oversimplifying this... does our jinja2_form ONLY need to work with respect to manually filling in the parameters (i.e. running python and typing jinja2_form.process(...vars go here....) ), or do we have to be able to read them in from a form like we did in hw1?

yes, the "just".  I trust that you can fill them in from the form if you
do the rest of the homework ;)

> What I get from reading this,
> "Note that you don't need to use this or run this in any CGI or WSGI script; just write the 'process' function so that it can be called as jinja2_form.process(...)."
> is that we don't need to use the CGI module to read in form variables, and only need to enter them into the function itself.
> 
> It seems too simple this way, which worries me, so I wanted to check to make sure I understood correctly. :o)

Nope, it's that simple -- but since I'm throwing several new things at
you each time I am trying to be somewhat nice...

> Also, do we need to do validation to make sure the proper types (int, string, etc.) were entered, or do we just assume the user puts in the correct types?

You can assume the correct types, for now.

--t
-- 
C. Titus Brown, ctb at msu.edu



More information about the cse491-fall-2009 mailing list