Initialisation du Content-Type à text/xml.
[Portfolio.git] / skins / portfolio_presentation_form.py
1 ##parameters=createPresentationPage=None, savePresentation=None, deletePresentation=None, defineSample=None, deleteSample=None, ajax=''
2
3 form = context.REQUEST.form
4
5 if createPresentationPage and \
6 context.createPresentationPage() and \
7 context.setStatus(True, 'Object created.') and \
8 context.setRedirect(context, 'object/presentation', ajax=ajax):
9 return
10
11 if savePresentation and \
12 context.editPresentationPage(form.get('presentation_page', '')) and \
13 context.setStatus(True, 'Saved changes.') and \
14 context.setRedirect(context, 'object/view', ajax=ajax) :
15 return
16
17 if deletePresentation and \
18 context.deletePresentationPage() and \
19 context.setStatus(True, 'Object deleted.') and \
20 context.setRedirect(context, 'object/view', ajax=ajax) :
21 return
22
23 if defineSample and \
24 context.setSamplePhoto(form.get('path')) and \
25 context.setStatus(True, 'Saved changes.') and \
26 context.setRedirect(context, 'object/view', ajax=ajax) :
27 return
28
29 if deleteSample and \
30 context.setSamplePhoto(None) and \
31 context.setStatus(True, 'Saved changes.') and \
32 context.setRedirect(context, 'object/view', ajax=ajax) :
33 return
34
35 options = {}
36 return context.portfolio_presentation_template(**options)