Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def add_group(self, group_name):
def callback(group_id):
group = profile.Group(group_id, group_name)
self.groups.add(group)
self.emit('group-added', group)
ag = scenario.GroupAddScenario(self._ab,
(callback,),
(self.__common_errback,))
ag.group_name = group_name
ag()
def add_group(self, group_name, done_cb=None, failed_cb=None):
def callback(group_id):
group = profile.Group(group_id, group_name)
self.groups.add(group)
self.__common_callback('group-added', done_cb, group)
ag = scenario.GroupAddScenario(self._ab,
(callback,),
(self.__common_errback, failed_cb))
ag.group_name = group_name
ag()
def add_group(self, group_name, done_cb=None, failed_cb=None):
def callback(group_id):
group = profile.Group(group_id, group_name)
self.groups.add(group)
self.__common_callback('group-added', done_cb, group)
ag = scenario.GroupAddScenario(self._ab,
(callback,),
(self.__common_errback, failed_cb))
ag.group_name = group_name
ag()
def add_group(self, group_name, done_cb=None, failed_cb=None):
def callback(group_id):
group = profile.Group(group_id, group_name)
self.groups.add(group)
self.__common_callback('group-added', done_cb, group)
ag = scenario.GroupAddScenario(self._ab,
(callback,),
(self.__common_errback, failed_cb))
ag.group_name = group_name
ag()