#NEWLINE# def deserialize_session( self , data ) : #NEWLINE# #INDENT# 'Deserializes values for a session.\n\n        :param data:\n            A list with session data.\n        :returns:\n            A dict with session data.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# assert ( len ( data ) >= len ( self . session_attributes ) ) #NEWLINE# return dict ( zip ( self . session_attributes , data ) ) #NEWLINE# #UNINDENT# except AssertionError : #NEWLINE# #INDENT# logging . warning ( ( 'Invalid user data: %r. Expected attributes: %r.' % ( data , self . session_attributes ) ) ) #NEWLINE# return None