Make the handler work for zope3/ztk style publisher.