|
|
## is52027c term 2 revision session
|
|
|
|
|
|
## brainstorm
|
|
|
|
|
|
_no screens open at this point please_
|
|
|
|
|
|
what did we study in term 2?
|
|
|
|
|
|
details!
|
|
|
|
|
|
## term 2 content map
|
|
|
|
|
|
here's a full map of term 2 material: this is what _could_ appear in an exam
|
|
|
|
|
|
![](pythonclass.contentmap.2017-2018.jpg)
|
|
|
|
|
|
|
|
|
## don't panic
|
|
|
|
|
|
* reading the slides & working through the labs gives you everything you need
|
|
|
* there are 40 short questions at the start of the exam which give you a good chunk of the pass mark
|
|
|
* don't rush these (there may be a plausible answer which is wrong)
|
|
|
* plan your revision...
|
|
|
|
|
|
## diagram time
|
|
|
|
|
|
we're going to draw a series of annotated diagrams to represent how our web apps work.
|
|
|
|
|
|
for each diagram you will work in a small group. the steps will be:
|
|
|
|
|
|
* discuss as a group
|
|
|
* draw and annotate your diagram
|
|
|
* a show-and-tell by one or more of the groups
|
|
|
* a wrap-up
|
|
|
|
|
|
## internet
|
|
|
|
|
|
draw a labelled diagram to represent the working of the internet protocal stack, when a client communicates with a server across the internet. include on your diagram:
|
|
|
|
|
|
* the layers
|
|
|
* indicate at which layer SMTP operates (SMTP = Simple Mail Transfer Protocol)
|
|
|
* indicate at which layer SSH operates
|
|
|
* indicate the numbers used to identify a unique connection between processes at either end (e.g. browser & web app)
|
|
|
|
|
|
relevant lecture = 11
|
|
|
|
|
|
##
|
|
|
|
|
|
![](internet_protocol.png)
|
|
|
|
|
|
## web form request-response
|
|
|
|
|
|
draw a labelled diagram to represent the process of a form being submitted to a flask app.
|
|
|
|
|
|
* include on your diagram the steps involved in form processing from beginning to end
|
|
|
* add code snippets where appropriate
|
|
|
|
|
|
relevant lecture = 13
|
|
|
|
|
|
##
|
|
|
|
|
|
![](flask_and_forms.png)
|
|
|
|
|
|
## pop quiz: Q's in bubbles
|
|
|
|
|
|
![](flask_and_forms_with_questions.png)
|
|
|
|
|
|
## login form
|
|
|
|
|
|
adapt your diagram from part 2 to show what happens when a user is logged in to the site. just use a basic login, without extensions.
|
|
|
|
|
|
relevant lecture = 15
|
|
|
|
|
|
##
|
|
|
|
|
|
![](login.png)
|
|
|
|
|
|
## some Q's
|
|
|
|
|
|
![](flask-login.png)
|
|
|
|
|
|
##
|
|
|
|
|
|
draw a diagram to show the setup of a simple api in flask
|
|
|
|
|
|
##
|
|
|
|
|
|
![](api.png)
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
|
do the same, but this time showing how the flask-restless extension is set up
|
|
|
|
|
|
##
|
|
|
|
|
|
![](flask-restless-api.png)
|
|
|
|
|
|
## notes on further revision
|
|
|
|
|
|
* lab this friday will include an exercise. lecturers will NOT be present
|
|
|
|
|
|
* feedback hours (aka office hours); form into small groups, come with specific questions or problems, BOOK AHEAD
|
|
|
|
|
|
* work through lab material, it's never too late! - online support from me, sorrel, hooman |
|
|
\ No newline at end of file |