def serialize_session(self, data):
    'Serializes values for a session.\n\n        :param data:\n            A dict with session data.\n        :returns:\n            A list with session data.\n        '
    assert (len(data) == len(self.session_attributes))
    return [data.get(k) for k in self.session_attributes]
Serializes values for a session.

:param data:
    A dict with session data.
:returns:
    A list with session data.
def serialize_session(self, data):
    'Serializes values for a session.\n\n        :param data:\n            A dict with session data.\n        :returns:\n            A list with session data.\n        '
    assert (len(data) == len(self.session_attributes))
    return [data.get(k) for k in self.session_attributes]