Package couchdbkit :: Package schema :: Module properties :: Class BooleanProperty
[hide private]
[frames] | no frames]

Class BooleanProperty

source code

object --+    
         |    
  Property --+
             |
            BooleanProperty

Boolean property, map to python bool

*ValueType*: bool

Nested Classes [hide private]
  to_python
bool(x) -> bool
  data_type
bool(x) -> bool
Instance Methods [hide private]
 
validate(self, value, required=True)
validate value
source code
 
empty(self, value)
test if boolean is empty
source code

Inherited from Property: __delete__, __get__, __init__, __property_config__, __property_init__, __set__, default_value, to_json

Inherited from Property (private): _to_json, _to_python

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

Class Variables [hide private]

Inherited from Property: creation_counter

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

validate(self, value, required=True)

source code 

validate value

Overrides: Property.validate
(inherited documentation)

empty(self, value)

source code 

test if boolean is empty

Overrides: Property.empty