Presentation is loading. Please wait.

Presentation is loading. Please wait.

Direct Congress Dan Skorupski Dan Vingo. Inner workings Reminder: MVC design pattern Procedural view: From request to response o Request passed to a view.

Similar presentations


Presentation on theme: "Direct Congress Dan Skorupski Dan Vingo. Inner workings Reminder: MVC design pattern Procedural view: From request to response o Request passed to a view."— Presentation transcript:

1 Direct Congress Dan Skorupski Dan Vingo

2 Inner workings Reminder: MVC design pattern Procedural view: From request to response o Request passed to a view function with regular expression that matches requested URL o View function processes the request and generates context variables  Request includes text parsed from the URL, POST/GET data and session data (ex. currently logged in user)  Appropriate data read or written to database to handle request  Data needed for response passed as context to template o A special HTML file, the template, is rendered with the context variables to produce the response  Variables tags replaced under context  If and for loops are evaluated under context What's the point?

3 Entry Criteria Several layers to each page (module) o The URL regular expression o The view function  Must gracefully handle bad requests, like:  Requesting details of non-existing legislation  Requesting list of legislation with invalid page number  Attempting to change profile without being logged in  Must provide proper output to the template o The template file  Must provide enough output to check if view is working properly And the models (database) shared between modules o Full validation built into the Django framework

4 Integration Actually very little to do! Only two points coupling modules o The models and the fields in those models in the underlying database  Basic models were specified before use in views and templates  Additional fields can be added without breaking anything o The URLs that respond to requests and the URLs that are linked to in responses  Checked by inspecting the URL list and template files  Or just navigating the website and making sure links work

5 Module list Data retrieval Legislation list Legislation detail Perform vote Perform post Login Logout Register Profile Help Mobile version

6 Dependencies

7 Other Criteria Suspension criteria If a module does not pass testing or provide the required functionality described in the Milestone IV report, it will be suspended To disable the module, the URL entry for the view function will be commented out and links to that page removed Reentry criteria Once a suspended module is fixed, begins passing its test and providing all the described functionality, it was be readded. To enable the module, the matching URL entry will be uncommented and links to the page inserted

8 Where we are now All functionality for each module is working and the project works together as a whole Little things need work (ex. several additional filters needed for the front page and for plots) And some of polish (work on HTML, CSS, JavaScript and images)

9 Questions?


Download ppt "Direct Congress Dan Skorupski Dan Vingo. Inner workings Reminder: MVC design pattern Procedural view: From request to response o Request passed to a view."

Similar presentations


Ads by Google