def __init__(self, tag, opts): self.label = opts.label.capitalize() # this rocks so much. # alternative to super: RiotTag.__init__(self, tag, opts) # uncomment next line and chrome will stop: # debugger self.pp('tag init', 'adding 2 lv') # mutating the lv object: self.lv.extend([{'name': 'n1'}, {'name': 'n2'}])
def update(self): self.pp('update handler in the custom tag, calling super') RiotTag.update(self)