← Back to team overview

phatch-dev team mailing list archive

[Bug 380776] Re: Error when changing JPG Size Maximum value

 

** Also affects: phatch/0.2
   Importance: Undecided
       Status: New

** Changed in: phatch/0.2
   Importance: Undecided => Critical

** Changed in: phatch/0.2
       Status: New => Fix Committed

** Changed in: phatch/0.2
     Assignee: (unassigned) => Nadia Alramli (nadiana)

-- 
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 Committed
Status in Phatch Series: 0.2: 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'