ability to configure age and reduction card

This commit is contained in:
Romain Bignon 2013-12-14 17:21:03 +01:00
commit ae7a28ae04
3 changed files with 47 additions and 12 deletions

View file

@ -44,8 +44,8 @@ class VoyagesSNCFBrowser(BaseBrowser):
self.location('/completion/VSC/FR/fr/cityList.js')
return self.page.get_stations()
def iter_departures(self, departure, arrival, date):
def iter_departures(self, departure, arrival, date, age, card):
self.location('/billet-train')
self.page.search(departure, arrival, date)
self.page.search(departure, arrival, date, age, card)
return self.page.iter_results()