Plon 内容类型的自定义模板
我是 Plone 新手。我点击了链接 http://plone .org/documentation/kb/creating-a-content-type-for-plone-3-for-developers,我添加了 DVD 内容类型。当我使用 http:/ 扩展它时/plone.org/documentation/kb/creating-a-custom-template-for-a-plone-content-type,自定义模板未显示。我收到错误,因为
Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module Products.Five.browser.metaconfigure, line 476, in __call__
Module Products.Five.browser.pagetemplatefile, line 125, in __call__
Module Products.Five.browser.pagetemplatefile, line 59, in __call__
Module zope.pagetemplate.pagetemplate, line 107, in pt_render
- Warning: Compilation failed
- Warning: zope.tal.taldefs.TALError: bad TAL attribute: u'', at line 27, column 4
PTRuntimeError: ['Compilation failed', "zope.tal.taldefs.TALError: bad TAL attribute: u'', at line 27, column 4"]
我知道我犯了一些错误。我不知道那是什么。有人帮助我吗?!...
Iam new to Plone. I followed the link http://plone.org/documentation/kb/creating-a-content-type-for-plone-3-for-developers and i added dvd content type. When i extend it by using http://plone.org/documentation/kb/creating-a-custom-template-for-a-plone-content-type, custom template is not showing.Iam getting the error as
Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module Products.Five.browser.metaconfigure, line 476, in __call__
Module Products.Five.browser.pagetemplatefile, line 125, in __call__
Module Products.Five.browser.pagetemplatefile, line 59, in __call__
Module zope.pagetemplate.pagetemplate, line 107, in pt_render
- Warning: Compilation failed
- Warning: zope.tal.taldefs.TALError: bad TAL attribute: u'', at line 27, column 4
PTRuntimeError: ['Compilation failed', "zope.tal.taldefs.TALError: bad TAL attribute: u'', at line 27, column 4"]
I know i made some mistake. I dont know whats that.Anyone help me?!...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您查看错误:
它表示您有一个与 tal 表达式无关的属性 u''。也许像
你模板中的某个地方......
If you look at the error :
It says that you have an attributes u'' that have nothing to do in a tal expression. Maybe something like
somewhere in your template...