core.bones.numericBone

Module Contents

Classes

numericBone

Holds numeric values.

class core.bones.numericBone.numericBone(precision=0, min=- int(pow(2, 30)), max=int(pow(2, 30)), defaultValue=None, *args, **kwargs)

Bases: viur.core.bones.baseBone

Holds numeric values. Can be used for ints and floats. For floats, the precision can be specified in decimal-places.

type = numeric
static generageSearchWidget(target, name='NUMERIC BONE', mode='range')
isInvalid(self, value)
getEmptyValue(self)
isEmpty(self, rawValue: Any)
singleValueFromClient(self, value, skel, name, origData)
buildDBFilter(self, name, skel, dbFilter, rawFilter, prefix=None)
getSearchTags(self, valuesCache, name)