old_contents: from pyramid.view import view_config
  
  from pyramid.httpexceptions import HTTPNotFound
  
  from sqlalchemy.orm import undefer
  
  from ..models import (
      DBSession,
      Entry,
      )
  
  from .finalisecontext import FinaliseContext
  
  class Entry(FinaliseContext):
  
      @view_config(context='..traversal.SingleEntry', renderer='permapage.mako')
      def single(self):
          return {
                  'post': self.context.entry,
                  }
  
  
new_contents: from pyramid.view import view_config
  
  from pyramid.httpexceptions import HTTPNotFound
  
  from sqlalchemy.orm import undefer
  
  from ..models import (
      DBSession,
      Entry,
      )
  
  from .finalisecontext import FinaliseContext
  
  class Entry(FinaliseContext):
  
      @view_config(context='..traversal.Entry', renderer='permapage.mako')
      def single(self):
          return {
                  'post': self.context.entry,
                  }
  
  
subject: Change SingleEntry to Entry