Re: [Darkworld-users] more than one server setting
Status: Alpha
Brought to you by:
weef
|
From: Sascha P. <sa...@po...> - 2007-11-09 00:02:57
|
That's good. The comma separated list wont trash the config file. I think I can do this. I'm going to implement in util/Config.* functions named=20 setSubOf(string name, int sub) and=20 valueSubOf(string name, int sub). For example: valueSubOf(server.urls, 1) would return the first serverurl and valueSubOf(server.urls, 5) would return the second username) The remaining stuff would be done by ui/LoginWindow.* Am Mon, 5 Nov 2007 04:44:16 -0800 (PST) schrieb Keith Turner <we...@ya...>: > DB side storage is not used for that. Changes to a users config info > are saved in ~/.dwclient/0.2/dwclient.conf. This is handled by > src/util/Config.cc. Autosave is set for the config object in main. >=20 > Config just holds a set of key value pairs. So we could create a list > like : >=20 > server.urls=3Ddw.deenlo.com,dw.deenlo.com:5002 >=20 > Could add code to util/Config.h/.cc to handle saving and restoring > list of strings into the comma seperated form above. =20 >=20 > Maybe put server,user, and pass all into one list....=20 >=20 > server.urls=3Ddw.deenlo.com,user1,pass1,dw.deenlo.com:5002,user2,pass2 >=20 > Does this help? >=20 > Keith >=20 > --- Alfred Wernersen <alf...@go...> wrote: >=20 > > Am I right, that if I wanted to choose between different sets of > > server/user/pass stored in the dwclient.conf it would need > > serverside db storage? > > For example if in dwclient.conf there are server.url and > > server.url2. Then the server would have to save url2 and url for me > > to be able to choose between them? > >=20 > > A workaround would be to start dw out of a shellscript that will let > > you > > decide which config to use. > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a > > browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/> > _______________________________________________ > > Darkworld-users mailing list > > Dar...@li... > > https://lists.sourceforge.net/lists/listinfo/darkworld-users > >=20 >=20 >=20 > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around=20 > http://mail.yahoo.com=20 >=20 > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. Download your FREE copy of Splunk now >> > http://get.splunk.com/ _______________________________________________ > Darkworld-users mailing list > Dar...@li... > https://lists.sourceforge.net/lists/listinfo/darkworld-users |