swat.cas.response.CASResponse

class swat.cas.response.CASResponse(_sw_response, soptions='', connection=None)

Bases: object

Response from a CAS action

This class is never instantiated directly. It is created behind the scenes and surfaced when iterating over the responses from a CAS action.

Parameters
_sw_responseSWIG CASResponse object

The SWIG response object.

soptionsstring, optional

soptions string of the connection object.

Returns
CASResponse object

Examples

>>> conn = swat.CAS()
>>> conn.invoke('serverstatus')
>>> for response in conn:
...     for k, v in response:
...         print(k, v)
Attributes
dispositionCASDisposition

The disposition of a CAS response. This includes the attributes severity, reason, status, debug, and status_code.

performanceCASPerformance

Performance metrices of a CAS action.

messageslist-of-strings

The messages returned by the CAS action.

updateflagsset-of-strings

The update flags sent by the CAS server.

__init__(self, _sw_response, soptions='', connection=None)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, _sw_response[, soptions, …])

Initialize self.

Attributes

disposition

Return a CASDisposition object

messages

Return a list of messages

performance

Return a CASPerformance object

updateflags

Return a set of update flags