core.bones.booleanBone

Module Contents

Classes

booleanBone

class core.bones.booleanBone.booleanBone(defaultValue=False, *args, **kwargs)

Bases: viur.core.bones.baseBone

type = bool
trueStrs
static generageSearchWidget(target, name='BOOLEAN BONE')
singleValueFromClient(self, value, skel, name, origData)
getEmptyValue(self)
isEmpty(self, rawValue: Any)
refresh(self, skel, boneName)None

Inverse of serialize. Evaluates whats read from the datastore and populates this bone accordingly.

Parameters
  • name (str) – The property-name this bone has in its Skeleton (not the description!)

  • expando (db.Entity) – An instance of the dictionary-like db.Entity class

Returns

bool

buildDBFilter(self, name, skel, dbFilter, rawFilter, prefix=None)