X-Git-Url: https://scm.cri.minesparis.psl.eu/git/Portfolio.git/blobdiff_plain/011a53d5681ad1f5fa88a534ec041c93d3e7be95..e73353500c67453ef9663d67eaeee7dd46c358ee:/skins/portfolio_presentation_form.py?ds=inline diff --git a/skins/portfolio_presentation_form.py b/skins/portfolio_presentation_form.py deleted file mode 100755 index ab77d5d..0000000 --- a/skins/portfolio_presentation_form.py +++ /dev/null @@ -1,36 +0,0 @@ -##parameters=createPresentationPage=None, savePresentation=None, deletePresentation=None, defineSample=None, deleteSample=None, ajax='' - -form = context.REQUEST.form - -if createPresentationPage and \ - context.createPresentationPage() and \ - context.setStatus(True, 'Object created.') and \ - context.setRedirect(context, 'object/presentation', ajax=ajax): - return - -if savePresentation and \ - context.editPresentationPage(form.get('presentation_page', '')) and \ - context.setStatus(True, 'Saved changes.') and \ - context.setRedirect(context, 'object/view', ajax=ajax) : - return - -if deletePresentation and \ - context.deletePresentationPage() and \ - context.setStatus(True, 'Object deleted.') and \ - context.setRedirect(context, 'object/view', ajax=ajax) : - return - -if defineSample and \ - context.setSamplePhoto(form.get('path')) and \ - context.setStatus(True, 'Saved changes.') and \ - context.setRedirect(context, 'object/view', ajax=ajax) : - return - -if deleteSample and \ - context.setSamplePhoto(None) and \ - context.setStatus(True, 'Saved changes.') and \ - context.setRedirect(context, 'object/view', ajax=ajax) : - return - -options = {} -return context.portfolio_presentation_template(**options) \ No newline at end of file