That is precisely what I was envisioning. Perhaps this is a better discussion for the developer group?
On Tue, Oct 7, 2014 at 12:29 PM, Leonel Câmara <[email protected]> wrote: > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/CZNxS9I222c/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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.

