summaryrefslogtreecommitdiff
path: root/entities
diff options
context:
space:
mode:
authorgilad_ilsar <gandismidas1>2016-09-22 12:00:19 +0300
committergilad_ilsar <gandismidas1>2016-09-22 12:00:19 +0300
commitcb254de7bc2bc2535267ccb970b0ef980cbdc759 (patch)
tree2f4e0a4282d393b2b1bf52ceb0aba3c3d1119b8a /entities
parente34be2e06f88032824beaec5173419c60602591f (diff)
update the loctaion entity
Diffstat (limited to 'entities')
-rw-r--r--entities/location.py9
1 files changed, 7 insertions, 2 deletions
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))