def main(self, faction=None, action=None, hero=None, lane=0): if faction and action and hero: b = IPCMessageBuilder() draft = b.hero_selection(faction) if action == 'select': draft.select(hero, lane) else: draft.ban(hero) self.send_action(b.build()) page = self.env.get_template('draft.html') return page.render(code='Drafting', state=self.state)
def fun(*args, **kwargs): b = IPCMessageBuilder() d = b.hero_selection(fac) d.select(hero, 0) return b.build()