[bzrweb PATCH] look up repository descriptions in a config file
Lalo Martins
lalo at exoweb.net
Fri May 20 06:30:22 BST 2005
On Thu, 2005-05-19 at 20:52 +1000, Martin Pool wrote:
> Some people have suggested that we should store a DOAP-like_ XML
> description of a project in a tree; keeping it in XML might make it
> easier for other tools to parse. On the other hand I think one reason
> why DOAP has not been taken up is that it's hard to read and write by
> hand, so something simpler might be good.
> So perhaps just
>
> <treedescription>
> <title>bazaar-ng</title>
> <shortdescription>...</shortdescription>
> <author>..</author>
> </treedescription>
>
> It's easy to recurse off into XML schema madness though; keeping it
> simple is definitely good.
I passionately hate the (ab)use of XML for human-computer interaction.
XML was designed for computer-computer and it's the only thing it's good
for. (But then it's *very* good.) Let's not go the crackpot way of
ZCML_ :-)
.. _ZCML:
http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Book/zcml.html
For parseability, I'd stick to configparser, which is much more
human-friendly. Also, configparser allows both ini format (foo=bar) and
rfc822 format (foo: bar) interchangeably.
We can probably even whip up a command that dumps the right DOAP dope
from this...
best,
Lalo Martins
--
My personal formula for efficiency is to arrange
problems in such a way that they solve each other.
--
http://www.exoweb.net/ mailto:lalo at exoweb.net
GNU: never give up freedom http://www.gnu.org/
More information about the bazaar
mailing list