eggification
[PlinnDocument.git] / Products / PlinnDocument / skins / plinndocument_edit_form.py
diff --git a/Products/PlinnDocument/skins/plinndocument_edit_form.py b/Products/PlinnDocument/skins/plinndocument_edit_form.py
new file mode 100644 (file)
index 0000000..5484bcf
--- /dev/null
@@ -0,0 +1,13 @@
+##parameters=change='', change_and_view='', ajax=''
+
+form = context.REQUEST.form
+if change and \
+   context.plinndocument_edit_control(**form) and \
+   context.setRedirect(context, 'object/edit', ajax=ajax) :
+       return
+elif change_and_view and \
+        context.plinndocument_edit_control(**form) and \
+        context.setRedirect(context, 'object/view', ajax=ajax) :
+       return
+
+return context.plinndocument_edit_template()