[dev] Preference namespaces

Chuck Hagenbuch chuck@horde.org
Tue, 20 Feb 2001 15:55:24 -0500


Quoting Jon Parise <jon@csh.rit.edu>:

> First off, every application has its own namespace (eg. 'imp',
> 'kronolith', etc.).  There is also a "global" namespace which is
> identified by an empty namespace string (so, by default, all
> preferences are "global" unless marked otherwise).

Sounds good.

> So, aside from implementing the above login (which shouldn't be too
> bad, really), I ran into another question.  We now have a notion of
> scope (should I be using the term 'scope' instead of 'namespace',
> btw?).  I think it would make more sense for the "local" values to
> override the "global" values, should we get two results for 'language'
> or 'full_name'.  Does that make sense, too?

I think scope is a better term, yes. And yes, app-specific (local) values 
should override global values.

> Also, if any of you see anything major that I might have missed,
> please point them out.  This is really something I'd like to
> implement correctly the first time through. =)

Looks pretty good to me.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"We have no fuel on board, plus or minus 8 kilograms." -A NASA scientist