Loading ccserver/handlers.py +4 −1 Original line number Diff line number Diff line Loading @@ -158,14 +158,17 @@ class ClientHandler(OnlineCCHandler): for obj in objects: if 'a' not in obj: raise BadObjectError('All objects must have the "a" tag.') tags = {} for obj in objects: return self._server.conf.show(obj['a'])['tags'] tags[obj['a']] = self._server.conf.show(obj['a'])['tags'] return tags @listed def delaccount(self, conn, query): ''' Delete the account with specified login. ''' objects = self._server.list(query) for obj in objects: if 'a' not in obj: Loading Loading
ccserver/handlers.py +4 −1 Original line number Diff line number Diff line Loading @@ -158,14 +158,17 @@ class ClientHandler(OnlineCCHandler): for obj in objects: if 'a' not in obj: raise BadObjectError('All objects must have the "a" tag.') tags = {} for obj in objects: return self._server.conf.show(obj['a'])['tags'] tags[obj['a']] = self._server.conf.show(obj['a'])['tags'] return tags @listed def delaccount(self, conn, query): ''' Delete the account with specified login. ''' objects = self._server.list(query) for obj in objects: if 'a' not in obj: Loading