Skip to content

Commit

Permalink
fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sfermigier committed Nov 2, 2018
1 parent 330dc82 commit 5995ef7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion abilian/core/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _setup_after_fork(self, app):
engine = db.get_engine(app, bind)
engine.dispose()

def read_configuration(self):
def read_configuration(self, env=None):
app = self.flask_app
app.config.setdefault("CELERY_DEFAULT_EXCHANGE", app.name)
app.config.setdefault("CELERY_DEFAULT_QUEUE", app.name)
Expand Down
4 changes: 2 additions & 2 deletions abilian/core/sqlalchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ def clear(self):
dict.clear(self)
self.changed()

def update(self, other):
dict.update(self, other)
def update(self, other, **kw):
dict.update(self, other, **kw)
self.changed()

def setdefault(self, key, failobj=None):
Expand Down
4 changes: 2 additions & 2 deletions abilian/services/activity/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ class ActivityService(Service):
def init_app(self, app):
Service.init_app(self, app)

def start(self):
def start(self, **kw):
Service.start(self)
activity.connect(self.log_activity)

def stop(self):
def stop(self, **kw):
Service.stop(self)
activity.disconnect(self.log_activity)

Expand Down
5 changes: 3 additions & 2 deletions abilian/services/audit/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ def init_app(self, app):
event.listen(Session, "after_flush", self.create_audit_entries)
self._listening = True

def start(self):
def start(self, **kw):
Service.start(self)
self.register_classes()

def is_auditable(self, model_or_class):
@staticmethod
def is_auditable(model_or_class):
if hasattr(model_or_class, "__auditable_entity__"):
return True

Expand Down
2 changes: 1 addition & 1 deletion abilian/services/indexing/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def register_value_provider(self, func):
def clear_update_queue(self, app=None):
self.app_state.to_update = []

def start(self):
def start(self, **kw):
Service.start(self)
self.register_classes()
self.init_indexes()
Expand Down

0 comments on commit 5995ef7

Please sign in to comment.