Re: [htdig3-dev] Current Status as of snapshot 3.2.0b1-020600


Subject: Re: [htdig3-dev] Current Status as of snapshot 3.2.0b1-020600
From: Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Date: Tue Feb 08 2000 - 08:43:47 PST


According to Vadim Chekan:
> loic@ceic.com wrote:
> > > defunct attributes in maindocs shouldn't matter, and would be no more
> > > confusing to users of old versions than the addition of new attributes.
> >
> > I think to remember that unknown attributes in the config file are silently
> > accepted. For the attributes that disapear we should have a 'verify' function
> > that barks when they are found in a config file or users will be very
> > confused and have a hard time tracking errors down to the disapeared attribute.
> > Does it make sense ?
>
> I'm again with my preposition about more severe config parser.
> All unknown options in cofig should generate error.
> User-defined variables should be declared for example in follow way:
> ====
> define: my_var1 my_var2
> my_var1: /usr/local/www/htdoc
> start_url: ${my_var1}/some_dir/
> ====
>
> This also will prevent stupid typo.

I can live with that. It will break existing config files that make
use of user-defined variables, but it's an easy fix. And, since we're
talking about dropping certain attributes, it would be a good time to
get people to clean up their old config files anyway.

Do we also allow implicit declarations of user-defined attributes, e.g.
by using them in allow_in_form or build_select_list? I can see good
and bad points to this, the bad point being that it doesn't provide the
same protection against typos that you'd have if you required explicit
declarations of all user-defined attributes.

I think this is a better solution than maintaining a list of defunct
attributes to check against.

-- 
Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev-unsubscribe@htdig.org You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Tue Feb 08 2000 - 08:46:49 PST