Lines Matching refs:self
47 def __init__(self, options=None, **kwargs):
48 self.init(options, **kwargs)
50 def clear(self):
51 self.options = {}
53 def init(self, options=None, **kwargs):
54 self.clear()
55 self.update(options, **kwargs)
57 def update(self, options=None, **kwargs):
63 self.options.update(options.options)
68 "%s instance has no attribute '%s'" % (type(self), key)
69 self.options[key] = value
71 def __getattr__(self, attr):
72 if attr in self.options:
73 return self.options[attr]
79 "%s instance has no attribute '%s'" % (type(self), attr)
81 def __setattr__(self, attr, value):
83 self.options[attr] = value
85 super(ChartOptions, self).__setattr__(attr, value)