aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2017-10-05 09:08:40 +0200
committerAlban Gruin2017-10-05 09:08:40 +0200
commitcede815e9314290227f18156b93f8020041381d6 (patch)
tree504a0baa297520dc35f4198359cfaef95c3785e4
parenta61f5a3f507395c2aa0cab09f14f4308159935f6 (diff)
Support des catégories iCalendar
-rw-r--r--feeds.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/feeds.py b/feeds.py
index 564b285..c2c5b14 100644
--- a/feeds.py
+++ b/feeds.py
@@ -29,7 +29,7 @@ from .templatetags.rooms import format_rooms
from .utils import get_current_or_next_week, get_week, group_courses
ICAL_NAMES = ["uid", "summary", "description", "location",
- "start", "dtstart", "dtend", "dtstamp"]
+ "start", "dtstart", "dtend", "dtstamp", "categories"]
class IcalFeedGenerator(SyndicationFeed):
@@ -66,6 +66,9 @@ class IcalFeed(Feed):
else:
return group
+ def item_categories(self, item):
+ return (item.type,)
+
def item_description(self, item):
return item.notes