From cb254de7bc2bc2535267ccb970b0ef980cbdc759 Mon Sep 17 00:00:00 2001 From: gilad_ilsar Date: Thu, 22 Sep 2016 12:00:19 +0300 Subject: update the loctaion entity --- entities/location.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'entities') diff --git a/entities/location.py b/entities/location.py index 9636c3b..cd1ca01 100644 --- a/entities/location.py +++ b/entities/location.py @@ -2,7 +2,12 @@ from entities.basic_entity import BasicEntity class Location(BasicEntity): - def __init__(self, name, types, name_in_langs): + def __init__(self, name, types_of_place, name_in_langs): self.name = name - self.types = types + self.types_of_place = types_of_place self.name_in_langs = name_in_langs + + def print_entity(self): + print("Name = " + self.name) + print("Name in langs = " + str(self.name_in_langs)) + print("Types = " + str(self.types_of_place)) -- cgit v1.2.3