You can obtain the code used in the lecture by checking out the forms-lecture branch of the "start" repository.
If you have not checked out the repository yet, and you are in the web2py directory (the directory where web2py.py is), you can do:
cd applicationsgit clone https://luca_de_alfaro@bitbucket.org/luca_de_alfaro/web2py_start.git startcd startgit checkout forms-lectureIf you have already a start application, then you can do:
cd applications/startgit fetchgit checkout forms-lecturegit merge origin/forms-lectureYou can also quickly browse the code on the web, looking at this branch.
I strongly suggest you read the Overview chapter of the Web2py book.
Other chapters that you may want to skim (see previous URL) are the chapter on the views, which gives an introduction to the templating language, the chapter on the database abstraction layer, which explains how to access the database, and the chapter on forms and validators, which explains how to generate forms and perform data validation. We will cover all of these concepts in class, but you might want to get a quick overview first, at least to know vaguely what's in each chapter.