예제 #1
0
 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'}])
예제 #2
0
 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'}])
예제 #3
0
 def update(self):
     self.pp('update handler in the custom tag, calling super')
     RiotTag.update(self)
예제 #4
0
 def update(self):
     self.pp('update handler in the custom tag, calling super')
     RiotTag.update(self)