Skip to content

Commit

Permalink
Enable endpoint for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ecarreras committed Oct 13, 2014
1 parent 1b900cf commit a1f37cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions empowering/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@ class Empowering(base.Resource):
"""
Empowering Insight Engine Service API.
"""
def __init__(self, company_id, key_file=None, cert_file=None, version='v1'):
def __init__(self, company_id, key_file=None, cert_file=None, version='v1',
debug=False):
self.company_id = str(company_id)
self.key_file = key_file
self.cert_file = cert_file
endpoint = "https://api.empowering.cimne.com"
endpoint = "http://91.121.140.152:5111"
if debug:
endpoint = "http://91.121.140.152:5111"
self.apiroot = '%s/%s' % (endpoint, version)
self.add_filter(self.use_json)
self.add_filter(self.add_company_id)
Expand Down

0 comments on commit a1f37cf

Please sign in to comment.