X-Git-Url: https://harishankar.org/repos/?p=biacv.git;a=blobdiff_plain;f=biacv_data.py;h=2d94801be132ca7e8768cda30e22f2a012bf4c38;hp=010e6649f5d31c9a9ab7110fae889febae39ab5e;hb=HEAD;hpb=2ea1c764b6ce60b55bb3f44e3f8f121933b66d29 diff --git a/biacv_data.py b/biacv_data.py index 010e664..2d94801 100644 --- a/biacv_data.py +++ b/biacv_data.py @@ -12,13 +12,17 @@ class BiaCVData: def save_data (self, filepath): json.dump (self.data, file (filepath, "w"), indent=4) + # load the data from a file + def load_data (self, filepath): + self.data = json.load (file (filepath, "rb")) + # set the document title def set_document_title (self, title): self.data["title"] = title # set personal information from gui def set_personal_info (self, nametitle, firstname, lastname, dateofbirth, - street, area, city, areacode, countrycode_landline, landline, + street, area, city, areacode, country, countrycode_landline, landline, countrycode_mobile, mobile, email, maritalstatus): self.data["nametitle"] = nametitle self.data["firstname"] = firstname @@ -28,6 +32,7 @@ class BiaCVData: self.data["area"] = area self.data["city"] = city self.data["areacode"] = areacode + self.data["country"] = country self.data["countrycode_landline"] = countrycode_landline self.data["landline"] = landline self.data["countrycode_mobile"] = countrycode_mobile @@ -35,6 +40,10 @@ class BiaCVData: self.data["email"] = email self.data["maritalstatus"] = maritalstatus + # set the profile highlights + def set_profile (self, listofprofilehighlights): + self.data["profile"] = listofprofilehighlights + # set the educational qualifications def set_educational_qualifications (self, listofqualifications): self.data["educationalqualifications"] = listofqualifications