Think I know where the new profile bug is coming from,
but I have to leave quickly now, so let me just explain.
1) Add new profile
-> AddProfileWin calls AddProfileOK calls
CreateProfile (in config.tcl)
2) CreateProfile copies HOME2/settings.xml to HOME/settings.xml
This create a HOME/settings.xml with keep_logs set to 0
in your own profile
3) load_config ; save_config is called.
Now what happens in load_config:
3a) ::config::configDefaults is called that sets keep_logs to 1.
then HOME/settings.xml is loaded, which sets it to 0 again !!!
So, the bug, I think now, is this:
Normally, you want to load defaults first, then load the
HOME/settings.xml.
But for a new profile, you'd want this the other way around.
I'm not sure how to solve this the best way yet, and have no time to
think about it anymore right now, but this might be it:
- CreateProfile does not copy HOME2/settings.xml to
HOME/settings.xml anymore. (line 1181)
- load_config has an if statement, give it also an else:
::config::configDefaults
if { [file exists [file join ${HOME} "config.xml"]] } {
// unchanged
loading HOME/settings.xml
} else { //this is new
copy HOME2/settings.xml to HOME/settings.xml,
but do not load it!
}
JeeBee.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Amsn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amsn-devel