[Jifty-commit] r1422 - in jifty: .
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Jul 1 16:30:53 EDT 2006
Author: nelhage
Date: Sat Jul 1 16:30:52 2006
New Revision: 1422
Modified:
jifty/ (props changed)
jifty/trunk/lib/Jifty/Action/Record.pm
Log:
r13507 at phanatique: nelhage | 2006-06-30 15:06:52 +0200
Documenting model-based canonicalization/validation/autocomplete in J::Action::Record
Modified: jifty/trunk/lib/Jifty/Action/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record.pm (original)
+++ jifty/trunk/lib/Jifty/Action/Record.pm Sat Jul 1 16:30:52 2006
@@ -102,6 +102,18 @@
that are defined "validate" or "autocomplete". These methods can
be overridden in any Action which inherits from this class.
+Additionally, if our model class defines canonicalize_, validate_, or
+autocomplete_ FIELD, generate appropriate an appropriate
+canonicalizer, validator, or autocompleter that will call that method
+with the value to be validated, canonicalized, or autocompleted.
+
+C<validate_FIELD> should return a (success boolean, message) list.
+
+C<autocomplete_FIELD> should return a the same kind of list as
+L<Jifty::Action::_autocomplete_argument/Jifty::Action/_autocomplete_argument>
+
+C<canonicalized_FIELD> should return the canonicalized value.
+
=cut
sub arguments {
More information about the Jifty-commit
mailing list