From 9fe2b6c8bf631a265dec44b5f474b97ad9d277c2 Mon Sep 17 00:00:00 2001 From: gilad_ilsar Date: Thu, 22 Sep 2016 14:28:05 +0300 Subject: updates --- entities/person.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'entities/person.py') 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)) -- cgit v1.2.3