summaryrefslogtreecommitdiff
path: root/rapid/config.py
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2009-11-23 20:25:27 +0100
committerJulien Valroff <julien@kirya.net>2009-11-23 20:25:27 +0100
commit1c557f52d4963e0ecf4f8a53a9099b2118137d5f (patch)
treebaa1fddd7d2db087fe253b79b7ea5aaee5484a9f /rapid/config.py
parent2776d880a5614382f94985bf314ef48b388cc5ae (diff)
Imported Upstream version 0.1.0~b2
Diffstat (limited to 'rapid/config.py')
-rw-r--r--rapid/config.py58
1 files changed, 58 insertions, 0 deletions
diff --git a/rapid/config.py b/rapid/config.py
new file mode 100644
index 0000000..c970977
--- /dev/null
+++ b/rapid/config.py
@@ -0,0 +1,58 @@
+# -*- coding: latin1 -*-
+### Copyright (C) 2007, 2008, 2009 Damon Lynch <damonlynch@gmail.com>
+
+### This program is free software; you can redistribute it and/or modify
+### it under the terms of the GNU General Public License as published by
+### the Free Software Foundation; either version 2 of the License, or
+### (at your option) any later version.
+
+### This program is distributed in the hope that it will be useful,
+### but WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+### GNU General Public License for more details.
+
+### You should have received a copy of the GNU General Public License
+### 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.1.0~b2'
+
+GCONF_KEY="/apps/rapid-photo-downloader"
+GLADE_FILE = "glade3/rapid.glade"
+
+DBUS_NAME = "net.damonlynch.RapidPhotoDownloader"
+
+#i18n
+APP_NAME = "rapid-photo-downloader"
+
+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']
+DEFAULT_BACKUP_LOCATION = 'Pictures'
+
+MAX_NO_READERS = 20
+
+RAW_FILE_EXTENSIONS = ['arw', 'dcr', 'cr2', 'crw', 'dng', 'mef', 'mos', 'mrw',
+ 'nef', 'orf', 'pef', 'raf', 'raw', 'sr2']
+
+#exiv2 0.18.1 introduces support for Panasonic .RW2 files
+
+NON_RAW_IMAGE_FILE_EXTENSIONS = ['jpg', 'jpe', 'jpeg', 'tif', 'tiff']
+
+CRITICAL_ERROR = 1
+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