(self, message, events, content_cache)
return "-"
Extract event data from a message annotated via _get_data optimizations
Extract event data from a message annotated via _get_data optimizations
Extract event data from a message annotated via _get_data optimizations
def _get_event_display(self, message, events, content_cache):
        """Extract event data from a message annotated via _get_data optimizations"""
        event = None
        if message.messaging_subevent:
            event = EventStub(
                message.event_source,
                message.event_source_id,
                message.event_content_type,
                message.event_form_name,
            )
        elif message.xforms_session_couch_id:
            event = events.get(message.xforms_session_couch_id, None)
        if event:
            return get_event_display(self.domain, event, content_cache)
        return "-"
def _get_event_display ( self , message , events , content_cache ) : event = None if message . messaging_subevent : event = EventStub ( message . event_source , message . event_source_id , message . event_content_type , message . event_form_name , ) elif message . xforms_session_couch_id : event = events . get ( message . xforms_session_couch_id , None ) if event : return get_event_display ( self . domain , event , content_cache ) return "-"