def add_organizer(user_dao, request_dict): """ Summary: Add a new organizer identified by Wikimedia username Request mode: username: type: string Response model: username: type: string last_active_date: type: date-time Errors: 403: User does not have permission to add organizers """ maint_dao = MaintainerDAO(user_dao) new_user_name = request_dict.get('username') new_organizer = maint_dao.add_organizer(new_user_name) data = {'username': new_organizer.username, 'last_active_date': format_date(new_organizer.last_active_date)} return {'data': data}