lino_welfare.modlib.cbss.mixins¶
Model mixins for lino_welfare.modlib.cbss.
Functions
|
Classes
|
Common Abstract Base Class for |
|
Abstract Base Class for Models that represent "new style" requests to the CBSS (and responses). |
|
Abstract Base Class for Models that represent SSDN ("classic") requests. |
|
Abstract base for Requests that have a field national_id and a method |
|
Mixin for models that have certain fields |
- class lino_welfare.modlib.cbss.mixins.CBSSRequest(*args, **kwargs)¶
Bases:
UserAuthored
,Duplicable
,Certifiable
Common Abstract Base Class for
SSDNRequest
andNewStyleRequest
- 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:
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:
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.