[z3-five] Formlib custom template - AttributeError: debug.
Maciej Wisniowski
maciej.wisniowski at coig.katowice.pl
Fri Feb 16 22:37:17 CET 2007
> What is wrong? Code is run at Plone but it's plain five with
> formlib here. Possibly lack of acquisition wrapper?
I found the bug. In general I looked at lib/python/zope/formlib
instead of Products/Five/formlib.
ViewPageTemplateFile should be imported like:
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
not like:
from zope.app.pagetemplate import ViewPageTemplateFile.
Also template definition (pageform.pt) is (re)defined in Five package.
--
Maciej Wisniowski
More information about the z3-five
mailing list