original_docstring: Retrieve an Event from the database.
docstring: Retrieve an Event from the database.
docstring_tokens: Retrieve an Event from the database .
code: def load(cls, context, event_id, event=None, stack=None):
          """Retrieve an Event from the database."""
          from heat.engine import stack as parser
  
          ev = (event if event is not None else
                event_object.Event.get_by_id(context, event_id))
          if ev is None:
              message = _('No event exists with id "%s"') % str(event_id)
              raise exception.NotFound(message)
  
          st = (stack if stack is not None else
                parser.Stack.load(context, ev.stack_id))
  
          return cls(context, st, ev.resource_action, ev.resource_status,
                     ev.resource_status_reason, ev.physical_resource_id,
                     ev.resource_properties, ev.resource_name,
                     ev.resource_type, ev.uuid, ev.created_at, ev.id)
code_tokens: def load ( cls , context , event_id , event = None , stack = None ) : from heat . engine import stack as parser ev = ( event if event is not None else event_object . Event . get_by_id ( context , event_id ) ) if ev is None : message = _ ( 'No event exists with id "%s"' ) % str ( event_id ) raise exception . NotFound ( message ) st = ( stack if stack is not None else parser . Stack . load ( context , ev . stack_id ) ) return cls ( context , st , ev . resource_action , ev . resource_status , ev . resource_status_reason , ev . physical_resource_id , ev . resource_properties , ev . resource_name , ev . resource_type , ev . uuid , ev . created_at , ev . id )
short_docstring: Retrieve an Event from the database.
short_docstring_tokens: Retrieve an Event from the database .
comment: """Retrieve an Event from the database."""