#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# particlesList = [ ] #NEWLINE# for particle in self : #NEWLINE# #INDENT# if isinstance ( particle , ModelConcept ) : #NEWLINE# #INDENT# mdlObj = particle . dereference ( ) #NEWLINE# if isinstance ( mdlObj , ModelObject ) : #NEWLINE# #INDENT# p = str ( mdlObj . qname ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# p = 'None' #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( particle , ModelAny ) : #NEWLINE# #INDENT# p = 'any' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# p = '{0}({1})' . format ( particle . localName , getattr ( particle . dereference ( ) , 'particles' , '' ) ) #NEWLINE# #UNINDENT# #UNINDENT# particlesList . append ( ( p + ( '' if ( particle . minOccurs == particle . maxOccurs == 1 ) else '{{{0}:{1}}}' . format ( p . minOccursStr , particle . maxOccursStr ) ) ) ) #NEWLINE# #UNINDENT# return ', ' . join ( particlesList )