Permalink
Browse files

Fixes the issues with httplib2 and a minor glitch

  • Loading branch information...
1 parent 225b73e commit 6f0d155ad253d87f9d64e96c78cf0fd373ddb842 @skinkie skinkie committed Apr 22, 2012
Showing with 6 additions and 6 deletions.
  1. +1 −1 nsapi/avt.py
  2. +1 −1 nsapi/prijzen.py
  3. +1 −1 nsapi/stations.py
  4. +2 −2 nsapi/storingen.py
  5. +1 −1 nsapi/treinplanner.py
View
@@ -16,7 +16,7 @@ def __init__(self, xml):
class avt():
def __init__(self, username, password):
- self.http = httplib2.Http()
+ self.http = httplib2.Http(disable_ssl_certificate_validation=True)
self.http.follow_redirects = False
self.http.add_credentials(username, password)
View
@@ -16,7 +16,7 @@ def __init__(self, xml):
class prijzen():
def __init__(self, username, password):
- self.http = httplib2.Http()
+ self.http = httplib2.Http(disable_ssl_certificate_validation=True)
self.http.follow_redirects = False
self.http.add_credentials(username, password)
View
@@ -14,7 +14,7 @@ def __init__(self, xml):
class stations():
def __init__(self, username, password):
- self.http = httplib2.Http()
+ self.http = httplib2.Http(disable_ssl_certificate_validation=True)
self.http.follow_redirects = False
self.http.add_credentials(username, password)
View
@@ -32,7 +32,7 @@ def __init__(self, xml):
class storingen():
def __init__(self, username, password):
- self.http = httplib2.Http()
+ self.http = httplib2.Http(disable_ssl_certificate_validation=True)
self.http.follow_redirects = False
self.http.add_credentials(username, password)
@@ -56,7 +56,7 @@ def fetch(self, station=None, actual=None, unplanned=None):
pass
def fetchandparse(self, *args, **kwargs):
- root = self.fetch(station, *args, **kwargs)
+ root = self.fetch(*args, **kwargs)
if root is not None:
ongepland = [ongeplandestoring(xmlstoring) for xmlstoring in root.findall('{http://openov.nl/protocol/nsapi}Ongepland/{http://openov.nl/protocol/nsapi}Storing')]
gepland = [ geplandestoring(xmlstoring) for xmlstoring in root.findall('{http://openov.nl/protocol/nsapi}Gepland/{http://openov.nl/protocol/nsapi}Storing')]
View
@@ -58,7 +58,7 @@ def __init__(self, xml):
class treinplanner():
def __init__(self, username, password):
- self.http = httplib2.Http()
+ self.http = httplib2.Http(disable_ssl_certificate_validation=True)
self.http.follow_redirects = False
self.http.add_credentials(username, password)

0 comments on commit 6f0d155

Please sign in to comment.