← Back to team overview

phatch-dev team mailing list archive

[Bug 385356] [NEW] Error in HighlightFileField

 

Public bug reported:

Hi,

When executing the attached actionlist on the any image I get the following:
Error 0: Can not apply action Highlight on image 'feed-icon1.png' in folder:
/home/nadia/Desktop/exper/test

Highlight: a filename with a valid extension was expected.
You can only use files with the following extensions:
bmp, bw, cmyk, cur, dcx, dib, flc, fli, fpx, gbr, gd, gif, ico, im,
imt, jpe, jpeg, jpg, mcidas, mic, msp, pbm, pcd, pcx, pgm, png, ppm,
psd, rgb, sun, tga, tif, tiff, xbm, xpm.

Action: {'fields': {'Highlight': 'Glass',
            'Resample Highlight': 'antialias',
            '__enabled__': u'true'},
 'label': 'Highlight'}

Traceback (most recent call last):
  File "/home/nadia/projects/phatch/phatch/core/api.py", line 314, in apply_action
    photo   = action.apply(photo,setting,cache)
  File "/home/nadia/projects/phatch/phatch/core/models.py", line 55, in apply
    values  = self.values(photo.get_info())
  File "/home/nadia/projects/phatch/phatch/core/models.py", line 51, in values
    return self.get_fields(info,convert=True,pixel_fields=pixel_fields)
  File "/home/nadia/projects/phatch/phatch/core/lib/formField.py", line 304, in get_fields
    value       = self.get_field(label,info)
  File "/home/nadia/projects/phatch/phatch/core/lib/formField.py", line 283, in get_field
    return self._get_field(label).get(info,label)
  File "/home/nadia/projects/phatch/phatch/core/lib/formField.py", line 409, in get
    label,test)
  File "/home/nadia/projects/phatch/phatch/core/lib/formField.py", line 681, in to_python
    return super(DictionaryReadFileField,self).to_python(x,label,test)
  File "/home/nadia/projects/phatch/phatch/core/lib/formField.py", line 659, in to_python
    value = super(ReadFileField, self).to_python(x,label)
  File "/home/nadia/projects/phatch/phatch/core/lib/formField.py", line 651, in to_python
    textwrap.fill(', '.join(self.extensions),70)))
ValidationError: Highlight: a filename with a valid extension was expected.
You can only use files with the following extensions:
bmp, bw, cmyk, cur, dcx, dib, flc, fli, fpx, gbr, gd, gif, ico, im,
imt, jpe, jpeg, jpg, mcidas, mic, msp, pbm, pcd, pcx, pgm, png, ppm,
psd, rgb, sun, tga, tif, tiff, xbm, xpm.
*

Thanks

** Affects: phatch
     Importance: Undecided
         Status: New

-- 
Error in HighlightFileField
https://bugs.launchpad.net/bugs/385356
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.

Status in Phatch = Photo & Batch!: New

Bug description:
Hi,

When executing the attached actionlist on the any image I get the following:
Error 0: Can not apply action Highlight on image 'feed-icon1.png' in folder:
/home/nadia/Desktop/exper/test

Highlight: a filename with a valid extension was expected.
You can only use files with the following extensions:
bmp, bw, cmyk, cur, dcx, dib, flc, fli, fpx, gbr, gd, gif, ico, im,
imt, jpe, jpeg, jpg, mcidas, mic, msp, pbm, pcd, pcx, pgm, png, ppm,
psd, rgb, sun, tga, tif, tiff, xbm, xpm.

Action: {'fields': {'Highlight': 'Glass',
            'Resample Highlight': 'antialias',
            '__enabled__': u'true'},
 'label': 'Highlight'}

Traceback (most recent call last):
  File "/home/nadia/projects/phatch/phatch/core/api.py", line 314, in apply_action
    photo   = action.apply(photo,setting,cache)
  File "/home/nadia/projects/phatch/phatch/core/models.py", line 55, in apply
    values  = self.values(photo.get_info())
  File "/home/nadia/projects/phatch/phatch/core/models.py", line 51, in values
    return self.get_fields(info,convert=True,pixel_fields=pixel_fields)
  File "/home/nadia/projects/phatch/phatch/core/lib/formField.py", line 304, in get_fields
    value       = self.get_field(label,info)
  File "/home/nadia/projects/phatch/phatch/core/lib/formField.py", line 283, in get_field
    return self._get_field(label).get(info,label)
  File "/home/nadia/projects/phatch/phatch/core/lib/formField.py", line 409, in get
    label,test)
  File "/home/nadia/projects/phatch/phatch/core/lib/formField.py", line 681, in to_python
    return super(DictionaryReadFileField,self).to_python(x,label,test)
  File "/home/nadia/projects/phatch/phatch/core/lib/formField.py", line 659, in to_python
    value = super(ReadFileField, self).to_python(x,label)
  File "/home/nadia/projects/phatch/phatch/core/lib/formField.py", line 651, in to_python
    textwrap.fill(', '.join(self.extensions),70)))
ValidationError: Highlight: a filename with a valid extension was expected.
You can only use files with the following extensions:
bmp, bw, cmyk, cur, dcx, dib, flc, fli, fpx, gbr, gd, gif, ico, im,
imt, jpe, jpeg, jpg, mcidas, mic, msp, pbm, pcd, pcx, pgm, png, ppm,
psd, rgb, sun, tga, tif, tiff, xbm, xpm.
*

Thanks



Follow ups

References