#NEWLINE# def new_inline( self , _name , _obj , **attribs ) : #NEWLINE# #INDENT# _obj = create_POM ( _obj , self . dtd ) #NEWLINE# try : #NEWLINE# #INDENT# ilmc = getattr ( self . dtd , _name ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# raise ValidationError ( ( '%s: not valid for this DTD.' % ( self , ) ) ) #NEWLINE# #UNINDENT# Inline = get_class ( self . dtd , ( 'Inline%s' % ( _name , ) ) , ( InlineMixin , ilmc ) ) #NEWLINE# il = Inline ( ** attribs ) #NEWLINE# il . _init ( self . dtd ) #NEWLINE# if _obj : #NEWLINE# #INDENT# il . append ( _obj ) #NEWLINE# #UNINDENT# self . append ( il ) #NEWLINE# return il