Re: BitPim support for multiple data dir

"Roger Binns" <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <001501c6052c$ebedadc0$3501a8c0@rogersqyvr14d3>
> bp.py -d <Data Path>

Having to specify a flag makes things considerably more difficult.
For example when doing file associations in Windows or Linux (and Mac
IIRC) you can specify the program to open a file, but you can't
specify extra flags at the same time.  If you dig under the hood
you can but that is more painful to do.

So here is my recommendation:

- Remove the ability to specify a data directory in the settings
  dialog.  You can have a read only text box.  The reason for this
  is very simple - it doesn't currently work, won't work in the
  future and would get more and more complex to maintain over time.

  For the feature to work correctly, it should copy all the data
  files over to the new location and use then switch over to using
  them.  It does a half assed job of that at the moment.

  Additionally it is very rare for the majority of people to want
  to move the data directory.

- Look for a file with an extension of .bitpim specified on the 
  command line.  If one is found:

    - Do a dirname to work out what directory to use as the data
      directory to use
    - Write that location to the registry/equivalent
    - Use the ConfigParser module and get all remaining config
      settings out of the specified .bitpim file

  If one is not found:

    - Look in the registry/equivalent for the last directory directory
      used and use that
    - .... or the current default if that doesn't exist
    - Do everything else as in the previous section

- Change the config object on the main window object to use ConfigParser

- Change the installer on Windows to associate .bitpim files with
  bitpim

- Try to do the same on Linux and Mac

- Power users can still create .bitpim files in random directories and
  then double click on them to cause BitPim to use that as a data directory

Roger


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.