[Schevo-devel] please review branch rev-valid-values

Matthew Scott mscott at springfieldtech.com
Fri Apr 21 13:10:29 EDT 2006


Another quick merge after this one is reviewed:


r1987 | mscott | 2006-04-21 11:59:10 -0500 (Fri, 21 Apr 2006) | 3 lines

* Change API for reversible method on fields.  You can now call  
f.reversible(value) and it will return the reversible version of that  
value for the field type.  Calling f.reversible() still returns the  
reversible version of the field's current value.

* New API for Entity fields.  You can now call  
f.reversible_valid_values(db) to get a list of (reversible, value)  
tuples for valid values.  This is useful for generating pick lists  
for web forms, or in other scenarios where the field values need to  
be serialized.


--
Matthew Scott
mscott at springfieldtech.com






More information about the Schevo-devel mailing list