#NEWLINE# @ classmethod #NEWLINE# def session_get_key( cls , request , create_if_needed = True ) : #NEWLINE# #INDENT# if ( ( not request . session . session_key ) and create_if_needed ) : #NEWLINE# #INDENT# request . session . create ( ) #NEWLINE# #UNINDENT# return request . session . session_key