alert_observer.hpp

master
inpos 2016-03-10 16:05:17 +03:00
parent 4a67a2cc59
commit 035ad1cce0
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,8 @@
from ..utils import Struct
alert_observer = Struct({
'alert_handler': None,
'handle_alert': 0,
'types': [],
'num_types': 0,
'flags': 0
})

View File

@ -1,4 +1,4 @@
class AttrDict(dict):
class Struct(dict):
def __getattr__(self, attr):
return self[attr]
def __setattr__(self, attr, value):