[gsoc-admin] EventConfig: Add csv files
- From: Lasse Schuirmann <lschuirma src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsoc-admin] EventConfig: Add csv files
- Date: Wed, 12 Aug 2015 10:30:26 +0000 (UTC)
commit b31537cda70b3d58c55462b2b5d0276d1040fbd3
Author: Lasse Schuirmann <lasse schuirmann gmail com>
Date: Wed Aug 12 12:29:51 2015 +0200
EventConfig: Add csv files
email/config.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/email/config.py b/email/config.py
index 89679b2..905b93d 100644
--- a/email/config.py
+++ b/email/config.py
@@ -36,6 +36,7 @@ class EventConfig:
self.ics_sources = []
self.mail_templates = []
self.dates = []
+ self.csvs = []
def append_from_section(self, section):
section_type = section['type'].lower()
@@ -48,6 +49,9 @@ class EventConfig:
if section_type in ['ics', 'ics_source']:
return self.append_ics_from_section(section)
+ if section_type in ['csv', 'csv_source']:
+ return self.append_csv_from_section(section)
+
def append_date_from_section(self, section):
raise NotImplementedError
@@ -57,6 +61,9 @@ class EventConfig:
def append_ics_from_section(self, section):
raise NotImplementedError
+ def append_csv_from_section(self, section):
+ raise NotImplementedError
+
def parse_event_config(filename):
config = configparser.ConfigParser()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]