#NEWLINE# def __init__( self , layout_handle , field , **kw ) : #NEWLINE# #INDENT# if ( not getattr ( field , 'name' , None ) ) : #NEWLINE# #INDENT# raise Exception ( ( "Field '%s' in %s has no name!" % ( field , layout_handle ) ) ) #NEWLINE# #UNINDENT# self . field = field #NEWLINE# self . editable = field . editable #NEWLINE# if ( 'listeners' not in kw ) : #NEWLINE# #INDENT# if ( not isinstance ( layout_handle . layout , layouts . ColumnsLayout ) ) : #NEWLINE# #INDENT# add_help_text ( kw , self . field . help_text , self . field . verbose_name , layout_handle . layout . _datasource , self . field . name ) #NEWLINE# #UNINDENT# #UNINDENT# kw . setdefault ( 'label' , field . verbose_name ) #NEWLINE# self . add_default_value ( kw ) #NEWLINE# LayoutElement . __init__ ( self , layout_handle , field . name , ** kw )