sgrew002project
Lab 9: Template README
NOTE TO MARKER: PLEASE IGNORE THE myserve_cat.py file outside the cgi-bin, it is empty. The actual file is in the cgi-bin folder!
Evidence
Checklist point | Evidence (filename(s) and line number(s) and/or short desciption) |
---|---|
write a simple server script which is capable of serving a web application written in Python | mysimpleServer.py |
retrieve one or more documents or rows from one or more collections or tables | In cgi-bin folder, in myserve_cat.py file on line 45,59,81 & 87 |
iterate over documents returned in a results cursor object | In cgi-bin folder, in myserve_cat.py file on line 37 |
filter and/or sort documents in the result set based on some simple criteria | In cgi-bin in, myserve_cat.py file on line 45 & 59 |
perform more advanced filtering and/or aggregation operations in a database query | In cgi-bin folder, in the myserve_cat.py file on line 30 |
handle a POST request made via an HTML form in a server-side script | In mysimpleServer.py on line 19 |
demonstrate consideration for Separation of Concerns through the modularisation (separation) of related code | In cgi-bin, in utils.py on line 12 |
demonstrate an awareness of how related data is modelled in the database | In cgi-bin, in myserve_cat.py on line 6,45,59,81 & 87 |
design and implement an original functional feature in a Python web app | In cgi-bin folder, in myserve_cat.py file on line 45, 48-52,59 & 62-63 |
other relevant extension of the taught material (if applicable) | In cgi-bin folder in, myserve_cat.py file on line 48-52 & 62-63 |
make a Python script self-executable | in mysimpleServer.py on line 1-2 & 4-10 |
utilise a range of Python's built-in functions and methods | In cgi-bin folder, in myserve_cat.py file on line 3,6,7,9-10,56,63 & 76 & in mysimpleServer.py line 13 and 14 |
make use of user-defined functions | In myutils.py from line 12 onwards & in cgi-bin folder, in myserve_cat.py file on line 3 |
design and implement reuseable functions | In cgi-bin folder, in myserve_cat.py file on line 48-52 & 59-63 & in myutils.py from line 12 onwards |
write readable, well-presented code | Everywhere! |