Today in class we did an overview of Python. Please see the Python Tutorial and Python Library Reference for more information.
This homework is due on Thursday, October 11, end of day, and it should be submitted via ecommons.
In the homework, you have to design a very simple web site, which stores online notes for users. A note is composed of a short title, and of a (possibly longer) piece of text.
Every user must login, and is then presented with hes (hes = her | his) list of notes, sorted according to the one that has been read last. A user can click on a note and read it, add one more note, or delete a note.
So, you will need to design these pages:
For the moment, you can just output the whole list of notes; it's not necessary to worry about things like pagination, search in the notes, etc.
To do this homework, you can rely on the overview for web2py that was part of the assigned reading. On Thursday we will also show how to build in class websites similar to this. This should give you sufficient examples for your work.
Note: Please submit a version of this homework done without using SQLFORM.grid or SQLFORM.smartgrid. Yes, these two would really simplify how to do the homework, and you are more than welcome -- encouraged -- to experiment with SQLFORM.grid for this homework. However, please turn in a solution that does not use these two particular form shortcuts.
Please submit in ecommons the web2py package you can obtain by pressing the "Pack All" option in web2py. A submission page for Homework 1 will be created in the following couple of days, in any case before Thursday.