From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=DMARC_NONE,MAILING_LIST_MULTI, RDNS_DYNAMIC autolearn=no autolearn_force=no version=4.0.0 Received: from bender.hallendal.net (as1-4-5-1.han.s.bonet.se [194.236.131.211]) by chiba.3jane.net (Postfix) with ESMTP id 781491A52E for ; Thu, 6 Dec 2001 14:39:10 -0600 (CST) Received: from zoidberg.hallendal.net (unknown [192.168.114.10]) by bender.hallendal.net (Postfix) with ESMTP id 421F64DF0 for ; Thu, 6 Dec 2001 21:39:26 +0100 (CET) Subject: Re: [gentoo-dev] USE database? From: Mikael Hallendal To: gentoo-dev@gentoo.org In-Reply-To: <3C0FB513.9070301@shaw.ca> References: <3C0AD02D.8030106@shaw.ca> <20011203104835.E30257@chiba.3jane.net> <1007618475.6862.3.camel@fry> <3C0FB513.9070301@shaw.ca> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-p86GNpKnfYcD7gNUO2TS" X-Mailer: Evolution/1.0 (Preview Release) Date: 06 Dec 2001 21:38:51 +0100 Message-Id: <1007671131.3031.8.camel@zoidberg> Mime-Version: 1.0 Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Developer discussion list List-Unsubscribe: , List-Archive: X-Archives-Salt: 1ae8e411-cb2d-473a-9adb-5bf890f3f238 X-Archives-Hash: 45a9b34a2812f38ca6352a2d52e29a53 --=-p86GNpKnfYcD7gNUO2TS Content-Type: text/plain Content-Transfer-Encoding: quoted-printable tor 2001-12-06 klockan 19.12 skrev Zach Forrest: > Before using python as an example, I had actually played with the idea=20 > of using XML. Any thoughts on this? I know that compared to a plain text=20 > file both of these notions seem somewhat cumbersome, but there are a=20 > couple of arguments for using a more structured approach. One,=20 > programatically handling the data is easier. Using either python or XML=20 > (and a parser) allows named access rather positional access to the=20 > fields. It also makes the definition of "records" more clear and easier=20 > to understand for new developers (i.e. me). It wouldn't be too difficult=20 > to parse XML (even into a dictionary). Yes, I thought about using XML too, as you say, for parsing the file it'll be better since we don't narrow it down to python. Any language that can parse XML (most) can be used for tools and such.=20 The problem is that writing things in XML will be even harder than the pretty clean syntax you proposed. =20 > As far as GConf is concerned, I think that the base system should have=20 > as few dependencies as possible. Python is already required, and, in my=20 > opinion, with its XML capabilities (or just using dictionaries) I=20 > believe a solution along these lines would be preferable. Yes, GConf is IMHO not an option today, perhaps in the future when it: 1) is more stable/tested for these kind of things. 2) has nice tools for editing the contents. Regards, Mikael Hallendal =20 --=20 Mikael Hallendal Gentoo Linux Developer, Desktop Team Leader CodeFactory AB, Stockholm, Sweden --=-p86GNpKnfYcD7gNUO2TS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8D9dbm0/ts8TQAWgRAvPDAJwMzLI56Na6qI0HzyeN0MH41V9XYgCeJXBK ttxaLO04ZAkC0IhYcXD4nrA= =pWoB -----END PGP SIGNATURE----- --=-p86GNpKnfYcD7gNUO2TS--