I think Mark has a point. The way Set.delete_uploaded_files is defined 
right now forces you to implement a custom_delete if you want to do this, I 
think it should use the field's uploadfs.remove if autodelete=True and you 
have set the field's uploadfs.

We could put something like this in Set.delete_uploaded_files:

if field.custom_delete:
    field.custom_delete(oldname)
elif field.uploadfs:
    field.uploadfs.remove(oldname)
else:
    ... do the normal upload removal.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to