Python Project: Properties Maintenance System P4
Subject: Writing a Full Application for Properties Maintenance System [Property Type Functions]
Learning : Python, Math, SQL, Logeic
[NOTE: To keep the code as simple as we can, We WILL NOT ADD any user input Varevecations. Assuming that our user will Enter the right inputs.]
In Part-4 We will writing the Functions to Manage the Maintenance Property Types Functions. Property Type is a Look-up Table that will help the user to select some values, as other Look-up Tables, in Part-1 when we set-up the application and select to create the database we Insert some data in to it. Now will will write three Functions to Add New Property Type, Edit a Property Type and Delete a Property Type from the DataBase.
[.. ALL THE CODE ARE AVAILABLE IN DOWNLOAD PAGE.. ]
Starting with Add New Property Type, We will ask the user to write the New Property Type then will run the SQL command to Insert it into the data-base.. Hear is the Code ..
![]() |
Now we will write the Edit Function we if we have any error in the typpiing of the Property Type we can correct it using this Function.. Fisr we will display all the Properies Type we have, asking the user to Select an ID of the one to-be Edit, then we will check for the availability of the user input [simple valitation proccess] and will ask the user to Insert the correct Value/Text to replace the exsist one. Here is the code ..
![]() |
The Last Function in this part is to Delete a selected Property Type, in this Functioin we will List down all the Property Types we have in the data-base and ask the user to select the ID for the one to be deleed, then we cal the SQL commands that will Delete the record. Here is the code ..
![]() |
.. DONE WITH PART – 4 ..
In Part-5 In coming post we will continue writing Lookup Table Functions to Add, Edit and Delete there data.
:: PMS Parts ::
Part 1 | Part 2 | Part 3 | Part 4 |
Part 5 | Part 6 | Part 7 | Part 8 |
..:: Have Fun with Coding ::.. 🙂
To Download my Python code (.py) files Click-Here
By: Ali Radwani
-
November 2, 2021 at 7:11 amPython Project: Properties Maintenance System P5 | Ali's Photography Space...
-
November 8, 2021 at 7:10 amPython Project: Properties Maintenance System P6 | Ali's Photography Space...
-
November 14, 2021 at 7:17 amPython Project: Properties Maintenance System P7 | Ali's Photography Space...
-
November 21, 2021 at 7:11 amPython Project: Properties Maintenance System P8 | Ali's Photography Space...
-
January 5, 2022 at 7:05 amPython Project: Properties Maintenance System P9 | Ali's Photography Space...
-
February 13, 2022 at 7:07 amPython Project: Properties Maintenance System P10 | Ali's Photography Space...
-
February 20, 2022 at 7:10 amPython Project: Properties Maintenance System P11 | Ali's Photography Space...
-
February 27, 2022 at 7:12 amPython Project: Properties Maintenance System P12 | Ali's Photography Space...