From 2df8271f31182e728eba27ff51533aa1afe43c7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= <benoit.pin@gmail.com> Date: Mon, 31 Mar 2014 01:18:54 +0200 Subject: [PATCH 1/1] Retrait upload par applet java. --- skins/portfolio_edit_form.py | 10 ----- skins/portfolio_edit_template.pt | 68 -------------------------------- 2 files changed, 78 deletions(-) delete mode 100644 skins/portfolio_edit_form.py delete mode 100644 skins/portfolio_edit_template.pt diff --git a/skins/portfolio_edit_form.py b/skins/portfolio_edit_form.py deleted file mode 100644 index e1f61da..0000000 --- a/skins/portfolio_edit_form.py +++ /dev/null @@ -1,10 +0,0 @@ -##parameters=upload_zip='', zipfile='', ajax='' - -if upload_zip and zipfile : - context.importZipFile(zipfile) - context.setStatus("Zip file imported and decompressed.") - context.setRedirect(context, 'object/view', ajax=ajax) - return - -options = {} -return context.portfolio_edit_template(**options) diff --git a/skins/portfolio_edit_template.pt b/skins/portfolio_edit_template.pt deleted file mode 100644 index 0aed0e7..0000000 --- a/skins/portfolio_edit_template.pt +++ /dev/null @@ -1,68 +0,0 @@ -<html metal:use-macro="here/main_template/macros/master" - xmlns="http://www.w3.org/1999/xhtml"> - - <head> - <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> - <title></title> - </head> - - <body> - <div metal:fill-slot="header"> - <div metal:use-macro="here/widgets/macros/generic_header"> - generic_header macro - </div> - </div> - - <div metal:fill-slot="main" tal:omit-tag="" i18n:domain="portfolio"> - <applet code="wjhk.jupload2.JUploadApplet" - archive="wjhk.jupload.jar" width="640" height="450" alt="" - mayscript="true" - tal:attributes="archive string:${portal_url}/jupload/wjhk.jupload.jar"> - <param name="postURL" - tal:attributes="value string:${here/absolute_url}/add_uploaded_content"> - <param name="lookAndFeel" value="system"/> - <param name="serverProtocol" value="HTTP/1.1"/> - <param name="uploadPolicy" value="DefaultUploadPolicy" /> - <param name="nbFilesPerRequest" value="1" /> - <param name="formdata" value="authform"/> - <param name="showLogWindow" value="false"/> - <param name="debugLevel" value="0" /> - <param name="filenameEncoding" value="utf-8"/> - plugin required. - </applet> - <br /> - <form name="authform"> - <fieldset style="width:10em"> - <legend i18n:translate="">If a file already exists</legend> - <label> - <input type="radio" name="overwrite:boolean" value="True" checked="checked"/> - <span i18n:translate="" tal:omit-tag="">overwrite</span> - </label> - <br/> - <label> - <input type="radio" name="overwrite:boolean" value="False"/> - <span i18n:translate="" tal:omit-tag="">rename</span> - </label> - </fieldset> - <input type="hidden" name="__ac" value=""/> - </form> - <script type="text/javascript"> - // <!-- - var auth = document.authform.elements.namedItem('__ac'); - auth.setAttribute('value', unescape(document.cookie.match(/__ac="([^"]*)"/)[1])); - // --> - </script> - <!-- - <hr/> - <form method="post" enctype="multipart/form-data" - tal:attributes="action string:${context/absolute_url}/portfolio_edit_form"> - <input type="hidden" name="noAjax" value="1" /> - <h2 i18n:translate="">Import a photo zipped file</h2> - <input type="file" name="zipfile" size="16" /> - <input type="submit" name="upload_zip" value="Import" i18n:attributes="value" /> - </form> - --> - </div> - </body> - -</html> \ No newline at end of file -- 2.20.1