[POS-commit] Kiwi/doc/proposals Validation,1.2,1.3

kiko at async.com.br kiko at async.com.br
Fri May 9 23:44:39 BRST 2003


Update of /cvs/Kiwi/doc/proposals
In directory anthem:/tmp/cvs-serv9528/doc/proposals

Modified Files:
	Validation 
Log Message:
Give Validator a shoeshine. Change the way the callback is run, passing
in the current validation state (and the last widget modified if any),
and handle the default callback correctly. I've added a simple test to
make sure both modes work nicely.

I also simplified the initialization loops and changed the call to be
done at startup to Validator.validate().

Updated documentation to go hand in hand, but this really needs some
rereading.


Index: Validation
===================================================================
RCS file: /cvs/Kiwi/doc/proposals/Validation,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Validation	8 May 2003 20:51:11 -0000	1.2
+++ Validation	10 May 2003 02:44:37 -0000	1.3
@@ -93,9 +93,9 @@
         - For validated widgets, check if they validate. If they do,
           mark and style them as OK. If they do not, mark and style them
           as NOT OK.
-        - Call the callback provided by the user or the default one. This
-          callback must call form_done() to see if everybody validates as
-          NOT EMPTY & OK as required.
+        - Call the callback provided by the user or the default one,
+          passing as arguments the UI's current state of validity and
+          the last widget changed (None if no widgets were changed).
 
 2.3 Notes
 



More information about the POS-commit mailing list