tabs -> spaces
[Portfolio.git] / skins / photo_edit_control.py
1 ##parameters=file='', **others
2 if file :
3 emptyImage = not context.size
4 try :
5 context.manage_upload(file)
6 return context.setStatus(True, 'Saved changes.')
7 except IOError :
8 if emptyImage: context.manage_upload('')
9 return context.setStatus(False, 'Image file format non supported.')
10 else :
11 return context.setStatus(False, 'Nothing to change.')