Re: MidgardConfig comments (Was: [midgard-dev] Automake and directories)

Piotras <pp-VVDi8QVAvoBWk0Htik3J/[email protected]> Fri, 24 Feb 2006 12:33:14 +0100
Newsgroups gmane.comp.web.midgard.devel
Message-ID <[email protected]>
"Jukka Zitting" <[email protected]> wrote:

> It's OK if we say that we use the GKeyFile syntax, but that there
> might be some minor inconsistencies before the real GKeyFile parser is
> used. The important thing is that people can use GLib to read and
> modify the config files without worrying too much about the syntax
> differences.

File syntax was initially parsed by GKeyFile API so there shouldn't be any inconsistencies. 
If we agree that file syntax and usage is in beta stage , then we shouldn't worry about 
"backward" compatibility in 1.9.
Especially when you think about database vs libgda configuration. 
 
> One more thing I'm wondering about the Midgard configuration file
> format... Now each Midgard database is configured in a separate
> configuration file with a single [Database] section. An alternative
> would be to have just one configuration file with multiple sections
> named by the configured databases. This would allow us for example to
> have a nice global configuration section. Something like this:

Yes, but I wonder about real configuration file usage and future sections.
We can provide such sections:

[Database]

#The name of libgda configuration file
Name=midgard

[Filesystem]

# var directory path
Var=/var/local/midgard/
Usr=/usr/local/midgard

#more

[MidgardUser]

Username=piotras
Password=secret
Sitegroup=somesg

#more and more

This file may be real huge one then. 

All in all I think the idea is good.

I do not comment API because it's good and depends on file format implementation.

Piotras