<br><font size=2 face="sans-serif">Yes, the nini merge is what I was talking
about. It seems like the natural way to do it to me. Any approach that
doesn't require a code change to add or change a default must be better.
</font>
<br><font size=2 face="sans-serif"><br>
Best regards<br>
Alan<br>
-------------------<br>
T.J. Watson Research Center, Hawthorne, NY<br>
1-914-784-7286<br>
alan_webb@us.ibm.com</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Stefan Andersson <stefan@tribalmedia.se></b>
</font>
<br><font size=1 face="sans-serif">Sent by: opensim-dev-bounces@lists.berlios.de</font>
<p><font size=1 face="sans-serif">03/13/2008 05:36 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
opensim-dev@lists.berlios.de</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif"><opensim-dev@lists.berlios.de></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Opensim-dev] Autocreated OpenSim.ini</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="Tahoma">Uh. Another approach would be to actually
use the 'merge' functionality of nini so that we could have the .example
as a fallback defaults file.<br>
<br>
(It should then probably not be called '.example' but rather '.default')<br>
<br>
So, by just adding another line of code, we'd have opensim.ini as an optional
local override of entries in opensim.default - then we can change and add
to opensim.default, and peoples local changes are kept untouched. The startup
can create an empty opensim.ini (with just a comment with an url to a wiki
page or something) if there is none on start.<br>
<br>
(All this provided the opensim.ini is actually parsed by nini, but if it
isn't, it should be)<br>
<br>
Best,<br>
/Stefan<br>
</font>
<br><font size=2 face="Tahoma"><br>
<br>
</font>
<br>
<hr><font size=2 face="Tahoma">Date: Thu, 13 Mar 2008 21:57:24 +0100<br>
From: DrScofield@xyzzyxyzzy.net<br>
To: opensim-dev@lists.berlios.de<br>
Subject: Re: [Opensim-dev] Autocreated OpenSim.ini<br>
<br>
Alan M Webb wrote: </font>
<br><font size=2 face="sans-serif"><br>
I think that's a great idea. I was pondering it myself; I think the code
generated file approach is absolutely the wrong way to do it.</font><font size=2 face="Tahoma">
<br>
</font><font size=2 face="sans-serif"><br>
Given the merging capabilities of the config mechanisms couldn't we set
it up to merge startup.ini (if it exists) after the example .ini? That
way we would get overrides if they exist, and defaults if they don't without
doing any conditional copying or munging of files. The startup.ini can
then be written out by the config mechanism if it didn't already exist,
or if the configuration has been changed.</font><font size=2 face="Tahoma">
</font>
<br><font size=2 face="Tahoma">that sounds like a rather good idea!<br>
<br>
cheers, <br>
dirk<br>
</font>
<br><font size=2 face="Tahoma">-- <br>
dr dirk husemann, mathmatics and computer science, ibm zurich research
lab<br>
SL: dr scofield ---- </font><a href=mailto:drscofield@xyzzyxyzzy.net><font size=2 color=blue face="Tahoma"><u>drscofield@xyzzyxyzzy.net</u></font></a><font size=2 face="Tahoma">
---- </font><a href=http://xyzzyxyzzy.net/ target=_blank><font size=2 color=blue face="Tahoma"><u>http://xyzzyxyzzy.net/</u></font></a><font size=2 face="Tahoma"><br>
RL: </font><a href=mailto:hud@zurich.ibm.com><font size=2 color=blue face="Tahoma"><u>hud@zurich.ibm.com</u></font></a><font size=2 face="Tahoma">
- +41 44 724 8573 - </font><a href=http://www.zurich.ibm.com/%7Ehud/ target=_blank><font size=2 color=blue face="Tahoma"><u>http://www.zurich.ibm.com/~hud/</u></font></a><font size=2 face="Tahoma"><br>
</font><tt><font size=2>_______________________________________________<br>
Opensim-dev mailing list<br>
Opensim-dev@lists.berlios.de<br>
https://lists.berlios.de/mailman/listinfo/opensim-dev<br>
</font></tt>
<br>