Re: [web2py] autodelete image computed field

2012-04-29 Thread CtrlSoft
on row delete works, but on row edit when i change row image or delete only image, image_thumb stil remains on disk

Re: [web2py] autodelete image computed field

2012-04-28 Thread Bruno Rocha
try setting uploadfolder=request.folder+'static/img_folder' to the thumbnail field. I guess web2py will look this to unlink the file. On Sat, Apr 28, 2012 at 9:06 PM, CtrlSoft wrote: > uploadfolder=request.folder+'static/img_folder' > -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] autodelete image computed field

2012-04-28 Thread CtrlSoft
hi i have a resize function wich creates image thumbanils... def THUMB(image, nx=120, ny=120): from PIL import Image import os try: img = Image.open(request.folder + 'static/img_folder/' + image) img.thumbnail((nx,ny), Image.ANTIALIAS) root,ext = os.path.spl