From d646c9a42273e98c85602f5618598125007bbfaa Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 25 Sep 2016 20:28:16 +0300 Subject: WIP: commit all files that were changed --- entities/location.py | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'entities/location.py') diff --git a/entities/location.py b/entities/location.py index a43eb8d..f782e1f 100644 --- a/entities/location.py +++ b/entities/location.py @@ -1,25 +1,25 @@ -import json - -from entities.basic_entity import BasicEntity - - -class Location(BasicEntity): - def __init__(self, name, types_of_place, name_in_langs, comments_list): - self.name = name - self.types_of_place = types_of_place - self.name_in_langs = name_in_langs - self.comments_list = comments_list - - CSV_FIELDS = ["name", "comments"] - TYPE = "LOCATION" - - - def print_entity(self): - 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)) - - def to_csv_dict(self): - return {'name': self.name, - 'comments': json.dumps(self.comments_list, ensure_ascii=False)} +import json + +from entities.basic_entity import BasicEntity + + +class Location(BasicEntity): + def __init__(self, name, types_of_place, name_in_langs, comments_list): + self.name = name + self.types_of_place = types_of_place + self.name_in_langs = name_in_langs + self.comments_list = comments_list + + CSV_FIELDS = ["name", "comments"] + TYPE = "LOCATION" + + + def print_entity(self): + 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)) + + def to_csv_dict(self): + return {'name': self.name, + 'comments': json.dumps(self.comments_list, ensure_ascii=False)} -- cgit v1.2.3