In addition to the code fix above, I had to change the following line
in config.py.
replace this line:
from Products.CMFCore.CMFCorePermissions import View
with the following:
try: # New CMF
from Products.CMFCore.permissions import View
except ImportError: # Old CMF
from Products.CMFCore.CMFCorePermissions import View
in config.py.
replace this line:
from Products.CMFCore.CMFCorePermissions import View
with the following:
try: # New CMF
from Products.CMFCore.permissions import View
except ImportError: # Old CMF
from Products.CMFCore.CMFCorePermissions import View