-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEventData.py
25 lines (24 loc) · 844 Bytes
/
EventData.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class EventData:
title = u''
link = u''
description = u''
author = u''
category = u''
date_start = u''
date_end = u''
location = u''
geo_lat = u''
geo_long = u''
@staticmethod
def strip(event_data):
event_data.title = event_data.title.strip()
event_data.link = event_data.link.strip()
event_data.description = event_data.description.strip()
event_data.author = event_data.author.strip()
event_data.category = event_data.category.strip()
event_data.date_start = event_data.date_start.strip()
event_data.date_end = event_data.date_end.strip()
event_data.location = event_data.location.strip()
event_data.geo_lat = event_data.geo_lat.strip()
event_data.geo_long = event_data.geo_long.strip()
return event_data