Commit 856ebc37 authored by Sebastien Petitdemange's avatar Sebastien Petitdemange
Browse files

Merge branch 'fixes' into 'master'

avoid call to redis when testing if object is a MeasurementGroup instance

See merge request !388
parents 167bf5ba 77020cbd
......@@ -170,6 +170,8 @@ def _active_name(name = ""):
class default_mg(object):
def __getattribute__(self, attr):
if attr == '__class__':
return MeasurementGroup
return getattr(get_active(), attr)
def __setattr__(self,name,value):
active = get_active()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment