~lifeless/storm/bug-620615

Viewing all changes in revision 223.

  • Committer: Gustavo Niemeyer
  • Date: 2008-04-25 13:56:41 UTC
  • mfrom: (221.1.5 validator)
  • Revision ID: gustavo@niemeyer.net-20080425135641-6pf1jdojz6vs28yv
Merged validator branch [r=jamesh,radix] [f=218381]

All properties now accept a "validator" parameter.  When used, a
function like validate(object, attribute_name, value) should be
given, and it may validate or modify the value before it's set in
the property.  The value assigned to the property is the result
of the validator, so the original value should be returned if
changing it isn't intended.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: