field.Boolean should handle any 'truthy' value and when permitted, should process the value into its boolean value. IE when a string is set the field.Boolean should return True
class MyMapper(Mapper):
activated = field.Boolean()
# scalar_sub_select will return an id which is a string rather than a Boolean scalar type.
>>> obj = query(Model, scalar_sub_select.label('activated')).first()
>>> MyMapper(obj=obj).serialize(objs)
>>> {'activated': 'asdasdsd'}
I believe this ticket it outdated now. The BooleanFieldOpts accepts a list of values that denote wether the value on session.data should be considered true or not.
field.Boolean should handle any 'truthy' value and when permitted, should process the value into its boolean value. IE when a string is set the field.Boolean should return True