#NEWLINE# @ classmethod #NEWLINE# def get_data_elem( self , name ) : #NEWLINE# #INDENT# '\n        Adds the possibility to specify\n        :class:`remote fields <lino.core.fields.RemoteField>`\n        in a layout template.\n        ' #NEWLINE# if ( self . model is not None ) : #NEWLINE# #INDENT# if ( ( not isinstance ( self . model , type ) ) or ( not issubclass ( self . model , models . Model ) ) ) : #NEWLINE# #INDENT# raise Exception ( ( '%s.model is %r (and not a Model subclass)' % ( self , self . model ) ) ) #NEWLINE# #UNINDENT# de = self . model . get_data_elem ( name ) #NEWLINE# if ( de is not None ) : #NEWLINE# #INDENT# return de #NEWLINE# #UNINDENT# #UNINDENT# return super ( Table , self ) . get_data_elem ( name )