Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def rename_group(self, group, new_name):
def callback():
group._name = group_name
self.emit('group-renamed', group)
rg = scenario.GroupRenameScenario(self._ab,
(callback,),
(self.__common_errback,))
rg.group_guid = group.id
rg.group_name = new_name
rg()
def rename_group(self, group, new_name, done_cb=None, failed_cb=None):
def callback():
group._name = new_name
self.__common_callback('group-renamed', done_cb, group)
rg = scenario.GroupRenameScenario(self._ab,
(callback,),
(self.__common_errback, failed_cb))
rg.group_guid = group.id
rg.group_name = new_name
rg()
def rename_group(self, group, new_name, done_cb=None, failed_cb=None):
def callback():
group._name = new_name
self.__common_callback('group-renamed', done_cb, group)
rg = scenario.GroupRenameScenario(self._ab,
(callback,),
(self.__common_errback, failed_cb))
rg.group_guid = group.id
rg.group_name = new_name
rg()
def rename_group(self, group, new_name, done_cb=None, failed_cb=None):
def callback():
group._name = new_name
self.__common_callback('group-renamed', done_cb, group)
rg = scenario.GroupRenameScenario(self._ab,
(callback,),
(self.__common_errback, failed_cb))
rg.group_guid = group.id
rg.group_name = new_name
rg()