#NEWLINE# def _refresh( self ) : #NEWLINE# #INDENT# ' Refresh the template instantiation.\n\n        This method will destroy the old items, build the new items,\n        and then update the parent object and tagged object.\n\n        ' #NEWLINE# self . _update_task = None #NEWLINE# if ( self . base is not None ) : #NEWLINE# #INDENT# items = self . base ( * self . args ) ( ** self . data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# items = [ ] #NEWLINE# #UNINDENT# for old in self . _items : #NEWLINE# #INDENT# if ( not old . is_destroyed ) : #NEWLINE# #INDENT# old . destroy ( ) #NEWLINE# #UNINDENT# #UNINDENT# if ( len ( items ) > 0 ) : #NEWLINE# #INDENT# self . parent . insert_children ( old , items ) #NEWLINE# #UNINDENT# self . _items = items #NEWLINE# self . tagged = make_tagged ( items , self . tags , self . startag )