[Cosmo-dev] Web UI configuration system
Matthew Eernisse
mde at osafoundation.org
Wed Jun 27 23:23:29 PDT 2007
There's nothing in conf.js that a sever admin would need to configure,
at least not now. It's a bunch of constants for setting sizes of pieces
of the UI in one place.
The only thing that someone might actually want to change would be
TEMPLATE_DIRECTORY, if they wanted to implement a custom skin. (I do
seem to remember there was someone who tweaked the HOUR_UNIT_HEIGHT to
get more hours into the scrolling area for timed events, but the current
design of the UI doesn't actually support changing that.)
Calling it 'conf' in the first place was kind of misnomer -- except that
it's something that lets the *developer* easily configure the size and
placement of UI elements in the layout.
That's not to say we will never need admin-configurable options, just
that the things in the current conf.js are not those types of options.
Thinking about it now, the only change I might make, aside from trying
to figure out some external way to config the template directory, would
be eventually to move all those props into the cosmo.app.pim.layout
namespace. (And of course do a bit of pruning to remove entries like
LOGO_GRAPHIC that are no longer used.
Matthew
Travis Vachon wrote:
> Sounds correct to me as well.
>
> What's the status of the work Bobby is describing?
>
> -Travis
>
> On Jun 27, 2007, at 9:46 PM, Brian Moseley wrote:
>
>> On 6/27/07, Bobby Rullo <br at osafoundation.org> wrote:
>>> Won't it still be packed up inside the war? If so, it's equally
>>> useless to administrators.
>>>
>>> I believe Jared was doing some work on a system that pulled in props.
>>> stuff from the $SNARF_DIST/etc/cosmo.properties and made it available
>>> to javascript somehow.
>>
>> agree. all app configuration should be done in cosmo.properties, not
>> in a file included within the war.
>> _______________________________________________
>> cosmo-dev mailing list
>> cosmo-dev at lists.osafoundation.org
>> http://lists.osafoundation.org/mailman/listinfo/cosmo-dev
>
> _______________________________________________
> cosmo-dev mailing list
> cosmo-dev at lists.osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/cosmo-dev
>
More information about the cosmo-dev
mailing list