def dispatch(self, event, ev_msg):
logger.debug('<STR_LIT>' + event + '<STR_LIT>' + repr(ev_msg))<EOL>eo = self.events.get(event, None)<EOL>if eo:<EOL><INDENT>eo.dispatch(ev_msg)<EOL><DEDENT>
Dispatch an event.
               event: name of the event (str)
               ev_msg: non-optional arguments dictionary.
           Side effects:
               If an EventObject is not already registered with the EventManager,
               a new EventObject will be created and registered.