z3版本和five版本的ViewPageTemplateFile差异

z3版本和five版本的ViewPageTemplateFile差异
导入时不同:
Five版
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
z3版
from zope.app.pagetemplate import ViewPageTemplateFile
另外Five版支持:
• Acquisition.
• The provider: TAL expression.
• Other Plone-specific TAL expression functions like test().
• Usually, Plone code needs the Five version of ViewPageTemplateFile.
但是z3版:
• Some subsystems, notably the z3c.form package, expect the Zope 3 version of ViewPageTemplateFile
instances.
设置