moved flask-esales extension to esales module

This commit is contained in:
Martin
2016-07-15 16:12:06 +02:00
parent e2831351b4
commit f6849225b6
3 changed files with 4 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
from .cluster import Cluster
class Esales(object):
def __init__(self, app=None):
self.cluster = Cluster()
if app:
self.init_app(app)
def init_app(self, app):
if not 'ESALES_URL' in app.config:
raise Exception('ESALES_URL missing in config')
self.cluster.url = app.config.get('ESALES_URL')