lino_welfare.modlib.cbss.mixins

Model mixins for lino_welfare.modlib.cbss.

(This module’s source code is available here.)

Functions

get_client(obj)

Classes

CBSSRequest(*args, **kwargs)

Common Abstract Base Class for SSDNRequest and NewStyleRequest

NewStyleRequest(*args, **kwargs)

Abstract Base Class for Models that represent “new style” requests to the CBSS (and responses).

SSDNRequest(*args, **kwargs)

Abstract Base Class for Models that represent SSDN (“classic”) requests.

SSIN(*args, **kwargs)

Abstract base for Requests that have a field national_id and a method get_ssin().

WithPerson(*args, **kwargs)

Mixin for models that have certain fields

class lino_welfare.modlib.cbss.mixins.CBSSRequest(*args, **kwargs)

Bases: lino.modlib.users.mixins.UserAuthored, lino.mixins.duplicable.Duplicable, lino_xl.lib.excerpts.mixins.Certifiable

Common Abstract Base Class for SSDNRequest and NewStyleRequest

wsdl_parts

alias of NotImplementedError

on_duplicate(ar, master)

When duplicating a CBSS request, we want re-execute it. So please duplicate only the parameters, not the execution data like ticket, sent and status. Note that also the user will be set to the user who asked to duplicate (because this is a subclass of UserAuthored.

get_row_permission(user, state, ba)

CBSS requests that have a ticket may never be modified.

on_cbss_ok(reply)

Called when a successful reply has been received.

execute_request(ar=None, now=None, simulate_response=None, environment=None)

This is the common part of a request for both classic and new-style.

get_excerpt_options(ar, **kw)

When we print a request, the resulting excerpt should go to the client’s history.

class lino_welfare.modlib.cbss.mixins.SSDNRequest(*args, **kwargs)

Bases: lino_welfare.modlib.cbss.mixins.CBSSRequest

Abstract Base Class for Models that represent SSDN (“classic”) requests.

validate_request()

Validates the generated XML against the XSD files. Used by test suite. It is not necessary to validate each real request before actually sending it.

execute_request_(now, simulate_response)

SSDN specific part of a request.

wrap_ssdn_request(srvreq, dt)

Wrap the given service request into the SSDN envelope by adding AuthorizedUser and other information common the all SSDN requests).

class lino_welfare.modlib.cbss.mixins.NewStyleRequest(*args, **kwargs)

Bases: lino_welfare.modlib.cbss.mixins.CBSSRequest

Abstract Base Class for Models that represent “new style” requests to the CBSS (and responses).

execute_request_(now, simulate_response)

NewStyle specific part of a request.

on_cbss_ok(reply)

Called when a successful reply has been received.

class lino_welfare.modlib.cbss.mixins.SSIN(*args, **kwargs)

Bases: lino.core.model.Model

Abstract base for Requests that have a field national_id and a method get_ssin().

class lino_welfare.modlib.cbss.mixins.WithPerson(*args, **kwargs)

Bases: lino_welfare.modlib.cbss.mixins.SSIN

Mixin for models that have certain fields