1 ##parameters=createPresentationPage=None, savePresentation=None, deletePresentation=None, defineSample=None, deleteSample=None, ajax=''
3 form
= context
.REQUEST
.form
5 if createPresentationPage
and \
6 context
.createPresentationPage() and \
7 context
.setStatus(True, 'Object created.') and \
8 context
.setRedirect(context
, 'object/presentation', ajax
=ajax
):
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
) :
17 if deletePresentation
and \
18 context
.deletePresentationPage() and \
19 context
.setStatus(True, 'Object deleted.') and \
20 context
.setRedirect(context
, 'object/view', ajax
=ajax
) :
24 context
.setSamplePhoto(form
.get('path')) and \
25 context
.setStatus(True, 'Saved changes.') and \
26 context
.setRedirect(context
, 'object/view', ajax
=ajax
) :
30 context
.setSamplePhoto(None) and \
31 context
.setStatus(True, 'Saved changes.') and \
32 context
.setRedirect(context
, 'object/view', ajax
=ajax
) :
36 return context
.portfolio_presentation_template(**options
)