Added IFormManager interface
authorThierry Florac <thierry.florac@onf.fr>
Wed, 18 Jul 2018 15:48:52 +0200
changeset 133 a8ac89790088
parent 132 772f71ac0698
child 134 6fe99f3112bb
Added IFormManager interface
src/pyams_form/interfaces/form.py
--- a/src/pyams_form/interfaces/form.py	Wed Jul 18 15:48:37 2018 +0200
+++ b/src/pyams_form/interfaces/form.py	Wed Jul 18 15:48:52 2018 +0200
@@ -419,6 +419,29 @@
     """Form suffix viewlets manager interface"""
 
 
+class IFormManager(Interface):
+    """Form manager interface
+
+    A form manager is an optional context/request/form multi-adapter which can be registered
+    in some custom contexts to handle form custom settings.
+    """
+
+    def getFields(self):
+        """Get form fields"""
+
+    def update(self):
+        """Update form"""
+
+    def updateWidgets(self, prefix=None):
+        """Update form widgets"""
+
+    def updateActions(self):
+        """Update form actions"""
+
+    def updateGroups(self):
+        """Update form groups"""
+
+
 #
 # Form buttons
 #