Re: [Jericho-devel] Preferences file
Status: Beta
Brought to you by:
joshlucas
From: josh l. <jo...@st...> - 2001-12-05 16:44:41
|
Kirsty Darbyshire wrote: > > I've just added in a "Save Options" menu item for BloggerGUI. At the > moment this just writes out a "jericho.properties" file in the current > directory. It also reads the same file from the current directory at > startup and uses the properties to log you in. > > I'll add in a Manila version soon. > > It needs some improvements: > * do something useful if your login details are wrong (also true of > the main login box) > * better file placement, eg look for $JERICHO_PREFS first, then > ~/.jerichorc, then ./.jerichorc or something like that. > * allow you to not save your password but just type it in at startup Awesome.. Thanks for picking it up.. :) I was thinking that maybe we should create a JerichoProperties class which would handle all of the gory details of the properties such as the search for them and loading/saving. That way, we could change properties formats (say to XML or something) and we wouldn't need to much with the GUI. It could be something like: [in JerichoGUI] JerichoProperties jprop = JerichoProperties.getInstance(); if Blogger if jprop != null BloggerGUI(jprop) else BloggerGUI() and then the same thing for Manila.. What do you think? josh |