application_controller module

class application_controller.Application

Bases: object

This class is a controller for the application database. It inherits properties from flask_restful.Resource

application_controller.change_status(self, status, application_id)

Changes the state of a given application_id to given status

application_controller.delete(self, application_id)

Deletes a given application from website and database.

application_controller.get(self, email, application_category)

Obtains stock information from the a url and adds a get request to controller :param email: email of the user :param application_category: the category of application @return: a string indicating the stock information and a string indicating cost of the product

application_controller.post(self, email, company_name, location, job_profile, salary, username, password, security_question, security_answer, notes, date_applied, status)

Obtains stock information from the given url.

Parameters

url – URL of the product

Returns

a string indicating the stock information and a string indicating cost of the product

application_controller.update(self, email, company_name, location, job_profile, salary, username, password, security_question, security_answer, notes, date_applied, status)

Updates any values changed in the profile and application parameters in website and database.