def ParseBookmarkAnnotationRow(
      self, parser_mediator, query, row, **unused_kwargs):
    """Parses a bookmark annotation row.

    Args:
      parser_mediator (ParserMediator): mediates interactions between parsers
          and other components, such as storage and dfvfs.
      query (str): query that created the row.
      row (sqlite3.Row): row.
    """
    query_hash = hash(query)

    event_data = FirefoxPlacesBookmarkAnnotationEventData()
    event_data.content = self._GetRowValue(query_hash, row, 'content')
    event_data.offset = self._GetRowValue(query_hash, row, 'id')
    event_data.query = query
    event_data.title = self._GetRowValue(query_hash, row, 'title')
    event_data.url = self._GetRowValue(query_hash, row, 'url')

    timestamp = self._GetRowValue(query_hash, row, 'dateAdded')
    if timestamp:
      date_time = dfdatetime_posix_time.PosixTimeInMicroseconds(
          timestamp=timestamp)
      event = time_events.DateTimeValuesEvent(
          date_time, definitions.TIME_DESCRIPTION_ADDED)
      parser_mediator.ProduceEventWithEventData(event, event_data)

    timestamp = self._GetRowValue(query_hash, row, 'lastModified')
    if timestamp:
      date_time = dfdatetime_posix_time.PosixTimeInMicroseconds(
          timestamp=timestamp)
      event = time_events.DateTimeValuesEvent(
          date_time, definitions.TIME_DESCRIPTION_MODIFICATION)
      parser_mediator.ProduceEventWithEventData(event, event_data)
def ParseBookmarkAnnotationRow ( self , parser_mediator , query , row , ** unused_kwargs ) : query_hash = hash ( query ) event_data = FirefoxPlacesBookmarkAnnotationEventData ( ) event_data . content = self . _GetRowValue ( query_hash , row , 'content' ) event_data . offset = self . _GetRowValue ( query_hash , row , 'id' ) event_data . query = query event_data . title = self . _GetRowValue ( query_hash , row , 'title' ) event_data . url = self . _GetRowValue ( query_hash , row , 'url' ) timestamp = self . _GetRowValue ( query_hash , row , 'dateAdded' ) if timestamp : date_time = dfdatetime_posix_time . PosixTimeInMicroseconds ( timestamp = timestamp ) event = time_events . DateTimeValuesEvent ( date_time , definitions . TIME_DESCRIPTION_ADDED ) parser_mediator . ProduceEventWithEventData ( event , event_data ) timestamp = self . _GetRowValue ( query_hash , row , 'lastModified' ) if timestamp : date_time = dfdatetime_posix_time . PosixTimeInMicroseconds ( timestamp = timestamp ) event = time_events . DateTimeValuesEvent ( date_time , definitions . TIME_DESCRIPTION_MODIFICATION ) parser_mediator . ProduceEventWithEventData ( event , event_data )
Parses a bookmark annotation row.

    Args:
      parser_mediator (ParserMediator): mediates interactions between parsers
          and other components, such as storage and dfvfs.
      query (str): query that created the row.
      row (sqlite3.Row): row.