def set_stance(self, stance): for i in self.instances: if hasattr(i, 'stance'): SetStance(i, stance).execute(i.session) self.toggle_stance()
def set_stance(self, stance): SetStance(self.instance, stance).execute(self.instance.session) self.toggle_stance()