--- a/src/ztfy/myams/form.py Mon Sep 15 13:06:41 2014 +0200
+++ b/src/ztfy/myams/form.py Tue Sep 23 17:16:50 2014 +0200
@@ -204,6 +204,7 @@
autocomplete = 'on'
display_hints_on_widgets = True
+ warn_on_change = u'default'
handle_upload = False
subforms_legend = None
@@ -224,6 +225,15 @@
[subform.update() for subform in self.subforms]
[tabform.update() for tabform in self.tabforms]
+ @property
+ def warnOnChange(self):
+ if self.warn_on_change is True:
+ return u'true'
+ elif self.warn_on_change is False:
+ return u'false'
+ else:
+ return None
+
def isDialog(self):
return IDialog.providedBy(self)