#NEWLINE# def save( self , session_key , session_dict , expire_date ) : #NEWLINE# #INDENT# s = self . model ( session_key , self . encode ( session_dict ) , expire_date ) #NEWLINE# if session_dict : #NEWLINE# #INDENT# s . save ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# s . delete ( ) #NEWLINE# #UNINDENT# return s