#NEWLINE# @ cached_property #NEWLINE# def preview_size( self ) : #NEWLINE# #INDENT# ( preview_width , preview_height ) = ( PREVIEW_WIDTH , PREVIEW_HEIGHT ) #NEWLINE# preview_size = self . request . GET . get ( 'preview_size' , '' ) . split ( 'x' ) #NEWLINE# if ( len ( preview_size ) != 2 ) : #NEWLINE# #INDENT# preview_size = ( PREVIEW_WIDTH , PREVIEW_HEIGHT ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# preview_width = int ( preview_size [ 0 ] ) #NEWLINE# #UNINDENT# except ( ValueError , TypeError ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# preview_height = int ( preview_size [ 1 ] ) #NEWLINE# #UNINDENT# except ( ValueError , TypeError ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# return ( preview_width , preview_height )