0

我想为匿名用户添加一个新的字段电子邮件到 plone.app.discussion 评论。我在谷歌搜索并找到了两种方法。

方法 1:使用 quintagroup 产品“quintagroup.plonecommments”。使用这种方法,我的克隆机正在崩溃。

方法 2:按照 URL 中给出的过程:http ://packages.python.org/plone.app.discussion/howtos/howto_extend_the_comment_form.html 。这种方法行不通。

任何人都可以为我的要求提供任何解决方案。

方法1的追溯:

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 plone.z3cform.layout, line 71, in call
Module plone .z3cform.layout,第 91 行,在渲染
模块 Products.Five.browser.pagetemplatefile,第 125 行,在调用
模块 Products.Five.browser.pagetemplatefile,第 59 行,在调用
模块 zope.pagetemplate.pagetemplate,第 113 行,在 pt_render
模块 zope.tal.talinterpreter,第 271 行,调用
中 模块 zope.tal.talinterpreter,第 343 行,解释中
模块 zope.tal.talinterpreter,第 888 行,do_useMacro
模块 zope.tal.talinterpreter,第 343 行,在解释
模块 zope.tal.talinterpreter,第 533 行,在 do_optTag_tal
模块 zope.tal.talinterpreter,第 518 行,在 do_optTag
模块 zope.tal.talinterpreter,第 513 行,在 no_tag
模块 zope .tal.talinterpreter,第 343 行,在解释
模块 zope.tal.talinterpreter,第 888 行,在 do_useMacro
模块中 zope.tal.talinterpreter,第 343 行,在解释
模块 zope.tal.talinterpreter,第 533 行,在 do_optTag_tal
模块中 zope.tal .talinterpreter,第 518 行,do_optTag
模块 zope.tal.talinterpreter,第 513 行,no_tag
模块 zope.tal.talinterpreter,第 343 行,解释
模块 zope.tal.talinterpreter,第 946 行,do_defineSlot
模块 zope.tal.talinterpreter,第 343 行,在解释
模块 zope.tal.talinterpreter,第 533 行,在 do_optTag_tal
模块 zope.tal.talinterpreter,第 518 行,在 do_optTag
模块 zope.tal.talinterpreter,第 513 行,在 no_tag
模块 zope .tal.talinterpreter,第 343 行,在解释
模块 zope.tal.talinterpreter,第 954 行,在 do_defineSlot
模块中 zope.tal.talinterpreter,第 343 行,在解释
模块 zope.tal.talinterpreter,第 533 行,在 do_optTag_tal
模块中 zope.tal .talinterpreter,第 518 行,do_optTag
模块 zope.tal.talinterpreter,第 513 行,no_tag
模块 zope.tal.talinterpreter,第 343 行,解释
模块 zope.tal.talinterpreter,第 946 行,do_defineSlot
模块 zope.tal.talinterpreter,第 343 行,在解释
模块 zope.tal.talinterpreter,第 405 行,在 do_startTag
模块 zope.tal.talinterpreter,第 482 行,在 attrAction_tal
模块 Products.PageTemplates.Expressions,第 225 行,在评估文本
模块 zope .tales.tales,第 696 行,在评估中
- URL:c:\plone41\eggs\plone.app.discussion-2.0.10-py2.6.egg\plone\app\discussion\browser\controlpanel.pt
- 第 17 行,第 0 列
- 表达式:<PathExpr 标准:u'view/settings'>
- 名称:
{'args': (),
'container':<PloneSite at /test>,
'context':<PloneSite at /test>,
'default': <object object at 0x00991830>,
'here': <PloneSite at /test>,
'环形': {},
“无”:无,
“选项”:{},
“重复”:<Products.PageTemplates.Expressions.SafeMapping 对象位于 0x06995CF0>,
“请求”:<HTTPRequest,URL=http://localhost:8080/test/@ @discussion-settings>,
'root': <Application at >,
'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x051C5490>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin' >,
'view': <Products.Five.metaclass.DiscussionSettingsControlPanel object at 0x06AF07B0>,
'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x06A28450>}
模块 zope.tales.expressions,第 217 行,在 _eval 中调用
Module Products.PageTemplates.Expressions,第 155 行
模块 Products.PageTemplates.Expressions,第 117 行,在渲染
模块 plone.app.discussion.browser.controlpanel,第 128 行,设置
IndexError:元组索引超出范围

对于 Approach2,我没有收到任何错误,但网站中没有任何反映。

4

1 回答 1

1

您提供的错误跟踪看起来像一个已知的 plone.app.discussion 错误。请升级到 plone.app.discussion 2.1.5 进行修复。

正如 Martijn 已经指出的那样,您必须提供更多信息和完整的回溯,否则人们无法真正帮助您。只是提供“这种方法不起作用”。使人们无法提供帮助。

于 2012-05-29T05:07:34.253 回答