[POS-commit] r1777 - kiwi/trunk/kiwi/ui

Johan Dahlin jdahlin at async.com.br
Mon Dec 5 12:57:48 BRST 2005


Author: jdahlin
Date: Mon Dec  5 12:57:47 2005
New Revision: 1777

Modified:
   kiwi/trunk/kiwi/ui/views.py
Log:
move function

Modified: kiwi/trunk/kiwi/ui/views.py
==============================================================================
--- kiwi/trunk/kiwi/ui/views.py	(original)
+++ kiwi/trunk/kiwi/ui/views.py	Mon Dec  5 12:57:47 2005
@@ -277,20 +277,6 @@
 
         self.slaves = {}
 
-    def register_validate_function(self, function):
-        """The signature of the validate function is:
-
-        def function(is_valid):
-
-        or, if it is a method:
-
-        def function(self, is_valid):
-
-        where the 'is_valid' parameter is True if all the widgets have
-        valid data or False otherwise.
-        """
-        self._validate_function = function
-
     def _init_glade_adaptor(self):
         """Special init code that subclasses may want to override."""
         self.glade_adaptor = WidgetTree(self, self.gladefile,
@@ -733,6 +719,20 @@
     def force_validation(self):
         self.check_and_notify_validity(force=True)
         
+    def register_validate_function(self, function):
+        """The signature of the validate function is:
+
+        def function(is_valid):
+
+        or, if it is a method:
+
+        def function(self, is_valid):
+
+        where the 'is_valid' parameter is True if all the widgets have
+        valid data or False otherwise.
+        """
+        self._validate_function = function
+
 type_register(SlaveView)
 
 class BaseView(SlaveView):


More information about the POS-commit mailing list