new in trunk:
form=SQLFORM(....)
if form.accepts(...,delete_uploads=True): ...
if set to True files previously uploaded in this record will be
deleted when the record is deleted or when the file is replaced.
Mind that if you do
db(query).delete()
referenced files are not automatically deleted. They never where. Now,
also you trunk, you can do
db(query).delete(delete_uploads=True)
Should this be the default behavior?
It would break backward compatibility but it is already the default
when files are uploaded in the db itself (i.e. on GAE).
Massimo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---