summaryrefslogtreecommitdiff
path: root/rapid/config.py
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2009-07-26 12:15:05 +0000
committerJulien Valroff <julien@kirya.net>2009-07-26 12:15:05 +0000
commitf794c204aa3af1798684522cfcf2024e90752310 (patch)
treed718a9124857a5cbcd62268d44c092471d2e7288 /rapid/config.py
[svn-inject] Installing original source of rapid-photo-downloader
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..2e59841
--- /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.0.10'
+
+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