summaryrefslogtreecommitdiff
path: root/entities/person.py
diff options
context:
space:
mode:
Diffstat (limited to 'entities/person.py')
-rw-r--r--entities/person.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/entities/person.py b/entities/person.py
index fa04566..c6db584 100644
--- a/entities/person.py
+++ b/entities/person.py
@@ -2,7 +2,7 @@ from entities.basic_entity import BasicEntity
class Person(BasicEntity):
- def __init__(self, name, date_of_birth, name_in_langs, bio_data, comments_list):
+ def __init__(self, name, date_of_birth, name_in_langs, bio_data, comments_list, profession):
"""
:param name:
@@ -55,9 +55,14 @@ class Person(BasicEntity):
bio_data_dict.update({elem: ''})
self.bio_data = bio_data_dict
self.comments_list = comments_list
+ self.profession = profession
def print_entity(self):
print("Name = " + self.name)
+ print("Birth year = " + self.birth_year)
+ print("Death year = " + self.death_year)
print("Names in langs = " + str(self.name_in_langs))
print("Bio Data = " + str(self.bio_data))
+ print("Comments = " + str(self.comments_list))
+ print("Profession = " + str(self.profession))