summaryrefslogtreecommitdiff
path: root/entities
diff options
context:
space:
mode:
authorgilad_ilsar <gandismidas1>2016-09-22 14:28:05 +0300
committergilad_ilsar <gandismidas1>2016-09-22 14:28:05 +0300
commit9fe2b6c8bf631a265dec44b5f474b97ad9d277c2 (patch)
treef8399baa768f7f67a9c338c9ac7b774b3f18ee2f /entities
parente24a4199fc75f9939c488c46aea3d8ff745a6ba8 (diff)
updates
Diffstat (limited to 'entities')
-rw-r--r--entities/location.py1
-rw-r--r--entities/person.py7
2 files changed, 7 insertions, 1 deletions
diff --git a/entities/location.py b/entities/location.py
index 07ef7ff..064b193 100644
--- a/entities/location.py
+++ b/entities/location.py
@@ -12,3 +12,4 @@ class Location(BasicEntity):
print("Name = " + self.name)
print("Name in langs = " + str(self.name_in_langs))
print("Types = " + str(self.types_of_place))
+ print("Comments = " + str(self.comments_list))
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))