From 9b901bed1fe85d553f034978a58b792b8bdba939 Mon Sep 17 00:00:00 2001 From: Alexandre Morignot Date: Thu, 27 Nov 2014 15:35:49 +0100 Subject: [PATCH] [CapCalendarEvent] add a ticket field to Query --- weboob/capabilities/calendar.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/weboob/capabilities/calendar.py b/weboob/capabilities/calendar.py index 0d5150db..b4109941 100644 --- a/weboob/capabilities/calendar.py +++ b/weboob/capabilities/calendar.py @@ -98,6 +98,7 @@ class Query(BaseObject): end_date = DateField('End date of the event') city = StringField('Name of the city in witch event will take place') categories = Field('List of categories of the event', list, tuple) + ticket = Field('List of status of the tickets sale', list, tuple) summary = StringField('Title of the event') def __init__(self): @@ -106,6 +107,10 @@ class Query(BaseObject): for value in CATEGORIES.values: self.categories.append(value) + self.ticket = [] + for value in TICKET.values: + self.ticket.append(value) + class CapCalendarEvent(CapCollection): """