#NEWLINE# def __init__( cls , name , bases , d ) : #NEWLINE# #INDENT# no_cache = d . get ( 'no_cache' , [ ] ) #NEWLINE# super ( WidgetMeta , cls ) . __init__ ( name , bases , d ) #NEWLINE# if ( 'render' in d ) : #NEWLINE# #INDENT# if ( 'render' not in no_cache ) : #NEWLINE# #INDENT# render_fn = cache_widget_render ( cls ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# render_fn = nocache_widget_render ( cls ) #NEWLINE# #UNINDENT# cls . render = render_fn #NEWLINE# #UNINDENT# if ( ( 'rows' in d ) and ( 'rows' not in no_cache ) ) : #NEWLINE# #INDENT# cls . rows = cache_widget_rows ( cls ) #NEWLINE# #UNINDENT# if ( 'no_cache' in d ) : #NEWLINE# #INDENT# del cls . no_cache #NEWLINE# #UNINDENT# if ( 'ignore_focus' in d ) : #NEWLINE# #INDENT# del cls . ignore_focus