Changes to templates to include e-mail as a link
[biacv.git] / biacv_data.py
index 010e664..2d94801 100644 (file)
@@ -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