diff options
author | Julien Valroff <julien@kirya.net> | 2010-07-11 09:01:25 +0200 |
---|---|---|
committer | Julien Valroff <julien@kirya.net> | 2010-07-11 09:01:25 +0200 |
commit | 9f2e1358d2c028c941b8be825522dd3351333710 (patch) | |
tree | d7907a5f1f41d206d8c3a7e49e55bfa0ce1f254f /rapid/config.py | |
parent | 1de9270ded0db955e309a21b8abc8981237fbc52 (diff) |
Imported Upstream version 0.3.0upstream/0.3.0
Diffstat (limited to 'rapid/config.py')
-rw-r--r-- | rapid/config.py | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/rapid/config.py b/rapid/config.py index cafcc16..2f0e1e3 100644 --- a/rapid/config.py +++ b/rapid/config.py @@ -15,7 +15,7 @@ ### along with this program; if not, write to the Free Software ### Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -version = '0.2.3' +version = '0.3.0' GCONF_KEY="/apps/rapid-photo-downloader" GLADE_FILE = "glade3/rapid.glade" @@ -30,11 +30,9 @@ MEDIA_LOCATION = "/media" SKIP_DOWNLOAD = "skip download" ADD_UNIQUE_IDENTIFIER = "add unique identifier" -REPORT_WARNING = "warning" -REPORT_ERROR = "error" -IGNORE = "ignore" - -DEFAULT_PHOTO_LOCATIONS = ['Pictures', 'Photos'] +# These next three values are fall back values that are used only +# if calls to xdg-user-dir fail +DEFAULT_PHOTO_LOCATIONS = ['Pictures', 'Photos'] DEFAULT_BACKUP_LOCATION = 'Pictures' DEFAULT_VIDEO_BACKUP_LOCATION = 'Videos' @@ -47,8 +45,14 @@ SERIOUS_ERROR = 2 WARNING = 3 MAX_LENGTH_DEVICE_NAME = 15 - -#logging - to be implemented -#LOGFILE_DIRECTORY = '.rapidPhotoDownloader' # relative to home directory -#MAX_LOGFILE_SIZE = 100 * 1024 # bytes -#MAX_LOGFILES = 5 +MAX_THUMBNAIL_SIZE = 160 + +STATUS_DOWNLOAD_PENDING = 0 # going to try to download it +STATUS_DOWNLOADED = 1 # downloaded successfully +STATUS_DOWNLOADED_WITH_WARNING = 2 # downloaded ok but there was a warning +STATUS_BACKUP_PROBLEM = 3 # downloaded ok, but the file was not backed up, or had a problem (overwrite or duplicate) +STATUS_NOT_DOWNLOADED = 4 # has not yet been downloaded (but might be if the user chooses) +STATUS_DOWNLOAD_AND_BACKUP_FAILED = 5 # tried to download but failed, and the backup failed or had an error +STATUS_DOWNLOAD_FAILED = 6 # tried to download but failed +STATUS_WARNING = 7 # warning (shown in pre-download preview) +STATUS_CANNOT_DOWNLOAD = 8 # cannot be downloaded |