#NEWLINE# def __call__( cls , item ) : #NEWLINE# #INDENT# if isinstance ( item , basestring ) : #NEWLINE# #INDENT# return ItemLayout ( cls ) #NEWLINE# #UNINDENT# msg = "cannot coerce '%s' to a 'SplitLayout' item" #NEWLINE# raise TypeError ( ( msg % type ( item ) . __name__ ) )