Package snakelegs :: Module fields :: Class BooleanField
[hide private]
[frames] | no frames]

Class BooleanField

object --+    
         |    
 BaseField --+
             |
            BooleanField

A field that takes a boolean value. Actually it takes any value and stores its boolean representation.

Instance Methods [hide private]
 
setvalue(self, value)
Set the value that this field will hold.

Inherited from BaseField: __init__, dbgetvalue, deferred, delvalue, getvalue

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from BaseField: value

Inherited from object: __class__

Method Details [hide private]

setvalue(self, value)

 

Set the value that this field will hold. You should use this method to perform validation as well. Raise a TypeError if value is of the incorrect type. By default, this method stores value in self._value

Overrides: BaseField.setvalue
(inherited documentation)