X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/3e0a2c257d49fb162da9c70d2f70194036235166..1a0790a4a065c0d2e8a45b08188791b51a35bc29:/skins/custom_content/document_edit_form.py?ds=sidebyside diff --git a/skins/custom_content/document_edit_form.py b/skins/custom_content/document_edit_form.py index 82602ec..c23a9a3 100644 --- a/skins/custom_content/document_edit_form.py +++ b/skins/custom_content/document_edit_form.py @@ -1,25 +1,20 @@ ##parameters=change='', change_and_view='', ajax='' -## +from Products.CMFCore.utils import getToolByName +atool = getToolByName(context, 'portal_attachment') +attachments = atool.getAttachmentsFor(context) + form = context.REQUEST.form text = form.get('text') if text and same_type(text, []) : - # when javascript is disabled, - # there's a hidden textarea from epoz - # and an other from