X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/0a487add0f49513241ce9394f52d03d557da99ea..1604fa1edceb391a268f458fe09f6431bd818e61:/skins/custom_content/document_edit_form.py diff --git a/skins/custom_content/document_edit_form.py b/skins/custom_content/document_edit_form.py index d652e57..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