#NEWLINE# def new_event( self , name , args , xheader = None ) : #NEWLINE# #INDENT# event = Event ( name , args , context = self . _context ) #NEWLINE# if xheader : #NEWLINE# #INDENT# event . header . update ( xheader ) #NEWLINE# #UNINDENT# return event