diff options
author | Julien Valroff <julien@kirya.net> | 2011-04-16 16:39:17 +0200 |
---|---|---|
committer | Julien Valroff <julien@kirya.net> | 2011-04-16 16:39:17 +0200 |
commit | 5539b9c5aa11891c66104fe51ebb5e9b4ad31538 (patch) | |
tree | a08efd10faf1ac622a62e29d17da6d4f1f0aeac3 /rapid/preferencesdialog.py | |
parent | 07934178861343ee213674120db367b8faeef1be (diff) | |
parent | 75b28642dd41fb4a7925b42cb24274de90a4f52c (diff) |
Merge commit 'upstream/0.4.0_beta1' into experimental
Diffstat (limited to 'rapid/preferencesdialog.py')
-rw-r--r-- | rapid/preferencesdialog.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rapid/preferencesdialog.py b/rapid/preferencesdialog.py index 4909820..0f46406 100644 --- a/rapid/preferencesdialog.py +++ b/rapid/preferencesdialog.py @@ -313,7 +313,6 @@ class PreferenceWidgets: Checks preferences validity """ - #~ print logger.debug(dir(self)) return check_pref_valid(self.pref_defn_L0, self.pref_list) class PhotoNamePrefs(PreferenceWidgets): @@ -911,6 +910,9 @@ class PreferencesDialog(): If use_dummy_data is True, then samples will not attempt to get data from actual download files """ + job_code = self.prefs.most_recent_job_code() + if job_code is None: + job_code = _("Job Code") self.downloads_today_tracker = DownloadsTodayTracker( day_start = self.prefs.day_start, downloads_today = self.prefs.downloads_today[1], @@ -934,6 +936,8 @@ class PreferencesDialog(): if self.sample_photo is None: self.sample_photo = rpdfile.SamplePhoto(sequences=self.sequences) + + self.sample_photo.job_code = job_code self.sample_video = None if metadatavideo.DOWNLOAD_VIDEO: @@ -945,6 +949,7 @@ class PreferencesDialog(): self.sample_video.download_start_time = datetime.datetime.now() if self.sample_video is None: self.sample_video = rpdfile.SampleVideo(sequences=self.sequences) + self.sample_video.job_code = job_code |