core.bones.captchaBone
¶
Module Contents¶
Classes¶
- class core.bones.captchaBone.captchaBone(publicKey=None, privateKey=None, *args, **kwargs)¶
Bases:
viur.core.bones.bone.baseBone
- type = captcha¶
- serialize(self, skel: SkeletonInstance, name: str, parentIndexed: bool) bool ¶
- unserialize(self, skel, name) bool ¶
- fromClient(self, skel: SkeletonInstance, name: str, data: dict) Union[None, List[viur.core.bones.bone.ReadFromClientError]] ¶
Reads a value from the client. If this value is valid for this bone, store this value and return None. Otherwise our previous value is left unchanged and an error-message is returned.
- Parameters
name (str) – Our name in the skeleton
data (dict) – User-supplied request-data
- Returns
None or String