[fix] avoid deleting files that have still a document that points to it
unlink of document and storage outside loop
Do not retrieve the attachment pool. Use self instead
[FIX] document: Fix to avoid deleting files that still are referenced from documents.
Merge branch 'master' of bzr::lp:ocb-addons/6.1 into ocb-6.1