phatch-dev team mailing list archive
-
phatch-dev team
-
Mailing list archive
-
Message #00625
[Bug 380776] Re: Error when changing JPG Size Maximum value
** Changed in: phatch
Status: Fix Committed => Fix Released
** Changed in: phatch
Milestone: None => 0.2.1
--
Error when changing JPG Size Maximum value
https://bugs.launchpad.net/bugs/380776
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.
Status in Phatch = Photo & Batch!: Fix Released
Status in Phatch 0.2 series: Fix Committed
Bug description:
When you change the 'JPG Size Maximum' value in the save action and run execute you get this exception:
Traceback (most recent call last):
File "/home/nadia/Desktop/phatch_0.1.6.bzr599-1_all/usr/share/pyshared/phatch/core/api.py", line 277, in apply_action
photo = action.apply(photo,setting,cache)
File "/home/nadia/Desktop/phatch_0.1.6.bzr599-1_all/usr/share/pyshared/phatch/actions/save.py", line 104, in apply
info, filesize)
File "/home/nadia/Desktop/phatch_0.1.6.bzr599-1_all/usr/share/pyshared/phatch/core/lib/formField.py", line 212, in get_field_filesize
return self._get_field(label).get_size(info,base,label)
File "/home/nadia/Desktop/phatch_0.1.6.bzr599-1_all/usr/share/pyshared/phatch/core/lib/formField.py", line 179, in _get_field
return self._fields[label]
KeyError: 'JPG Size Tolerance'
The fix is to change the field 'PNG Size Tolerance' to 'JPG Size Tolerance'