'View the most recently added book'

def view(self):

    most_recent = most_recent_id = None
    db = self.db.new_api
    for (book_id, timestamp) in db.all_field_for(u'timestamp', db.all_book_ids()).iteritems():
        if ((most_recent is None) or (timestamp > most_recent)):
            most_recent = timestamp
            most_recent_id = book_id
    if (most_recent_id is not None):
        view_plugin = self.gui.iactions[u'View']
        view_plugin._view_calibre_books([most_recent_id])
