From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OfqnH-00078u-NF for garchives@archives.gentoo.org; Mon, 02 Aug 2010 08:54:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03435E0B12; Mon, 2 Aug 2010 08:54:41 +0000 (UTC) Received: from gateway09.websitewelcome.com (gateway09.websitewelcome.com [64.5.50.3]) by pigeon.gentoo.org (Postfix) with SMTP id BF08DE0B12 for ; Mon, 2 Aug 2010 08:54:40 +0000 (UTC) Received: (qmail 8558 invoked from network); 2 Aug 2010 09:02:48 -0000 Received: from gator871.hostgator.com (174.120.29.34) by gateway09.websitewelcome.com with SMTP; 2 Aug 2010 09:02:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=basementcode.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=pBtILPA8aG8+LJA6yQZqU4LNU8AwBkCqPnBxMkVI9yF+erTI2Wm+DSRvljRl3ALdeZx6l1Ryr530Rocy7qFd+Bz4UAiehWDfLYJF2Aa2v5omAZogHUrX+RhzaF61yufI; Received: from [70.82.157.20] (port=62587 helo=[192.168.0.101]) by gator871.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Ofqn9-0004o7-7O; Mon, 02 Aug 2010 03:54:39 -0500 Message-ID: <4C565D9F.2090409@basementcode.com> Date: Mon, 02 Aug 2010 01:54:39 -0400 From: Christopher Harvey User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-soc@lists.gentoo.org Reply-to: gentoo-soc@lists.gentoo.org MIME-Version: 1.0 To: gentoo-soc@lists.gentoo.org, Luis Araujo Subject: [gentoo-soc] ventoo weekly report Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator871.hostgator.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - basementcode.com X-Archives-Salt: afe524b3-55dd-45ed-93bf-3759ebc57b9d X-Archives-Hash: 13792f41b5dede3c5ed748375587f3b0 This week I added a system to ventoo that highlights parts of a file when ventoo thinks they are invalid and should not be saved back into the file. The code that does the checking are external python scripts that users can easily add to ventoo without changing any other code. The reason this was added is that up until now as the user is editing a file he/she had no idea if the file was valid until a diff or a save was requested. Now SOME (or even most) errors can be caught with a python script that validates user input in the background. Even nicer is that well written scripts can catch errors that augeas can't. (augeas is the library I use to move the files in and out of memory and manipulate the file structure) For example, if the user enters /dev/sdf12, but that device doesn't exist, the cell lights up bright red. The user can still save, so it's really only a warning. Warnings like this can typically be checked in about 2-4 lines of python. Augeas already did a pretty good job of catching a lot of invalid config files, but this system makes it easier for the user and can catch errors that augeas wasn't designed to catch. Next week: Remote editing of other computers.