core.bones.selectBone
¶
Module Contents¶
Classes¶
- class core.bones.selectBone.selectBone(defaultValue=None, values={}, multiple=False, *args, **kwargs)¶
Bases:
viur.core.bones.baseBone
- type = select¶
- singleValueFromClient(self, value, skel, name, origData)¶
- buildDBFilter__(self, name, skel, dbFilter, rawFilter, prefix=None)¶
Parses the searchfilter a client specified in his Request into something understood by the datastore. This function must:
Ignore all filters not targeting this bone
- Safely handle malformed data in rawFilter
(this parameter is directly controlled by the client)
- Parameters
name (str) – The property-name this bone has in its Skeleton (not the description!)
skel (
server.skeleton.Skeleton
) – Theserver.db.Query
this bone is part ofdbFilter (
server.db.Query
) – The currentserver.db.Query
instance the filters should be applied torawFilter (dict) – The dictionary of filters the client wants to have applied
- Returns
The modified
server.db.Query