After I installed CMFForum into my Plone-Site i get the
following traceback (eg. in Newsitems with discussion
allowed).
I installed it like writen in INSTALL.txt witch
install and install_discussions.
Im using Plone 1.0.4 CMFForum 0.1beta2
Carsten (carsten@carsten-schabacker.de).
Traceback (innermost last):
Module ZPublisher.Publish, line 98, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.CMFCore.PortalContent, line 117, in
__call__
Module Shared.DC.Scripts.Bindings, line 252, in __call__
Module Shared.DC.Scripts.Bindings, line 283, in
_bindAndExec
Module Products.CMFCore.FSPageTemplate, line 167, in
_exec
Module Products.PageTemplates.ZopePageTemplate, line
228, in _exec
Module Products.CMFCore.FSPageTemplate, line 139, in
pt_render
Module Products.PageTemplates.PageTemplate, line 95,
in pt_render
- <FSPageTemplate at /Portal/newsitem_view used for
/Portal/Nachrichten/neu_Dokumentation>
Module TAL.TALInterpreter, line 200, in __call__
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 703, in do_useMacro
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 734, in do_defineSlot
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 414, in do_optTag_tal
Module TAL.TALInterpreter, line 399, in do_optTag
Module TAL.TALInterpreter, line 394, in no_tag
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 703, in do_useMacro
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 669, in do_condition
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 473, in do_setLocal_tal
Module Products.PageTemplates.TALES, line 220, in
evaluate
- Line 11, Column 4
- Expression: <PythonExpr
container.sort_modified_ascending(discussion.posts())>
- Names:
{'container': <PloneSite instance at 94c39a8>,
'default': <Products.PageTemplates.TALES.Default
instance at 0x86d81ec>,
'here': <NewsItem at
/Portal/Nachrichten/neu_Dokumentation>,
'loop': <SafeMapping instance at 9a2c7a8>,
'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x86d8244>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at 9a2c7a8>,
'request': <HTTPRequest,
URL=http://lxcsc:8080/Portal/Nachrichten/neu_Dokumentation>,
'root': <Application instance at 918a850>,
'template': <FSPageTemplate at
/Portal/newsitem_view used for
/Portal/Nachrichten/neu_Dokumentation>,
'traverse_subpath': [],
'user': csc}
Module Products.PageTemplates.ZRPythonExpr, line 48,
in __call__
- __traceback_info__:
container.sort_modified_ascending(discussion.posts())
Module Python expression
"container.sort_modified_ascending(discussion.posts())",
line 2, in f
AttributeError: posts
Logged In: NO
I found out one of the problems is in
viewThreadsAtBottom:
<metal:block tal:define="results
python:container.sort_modified_ascending(discussion.posts());
The code in the DiscussionTool.py at Line 103:
talkback = getattr( content, 'talkback', None )
if not talkback:
talkback = self._createDiscussionFor( content )
so if there exits a talkback-object no new Discussion will
be created. but it seems that the talkback-object has no
"posts()" Method
i added this two lines:
if getattr(talkback, 'posts', None ) == None:
talkback = self._createDiscussionFor( content )
but now (i think) everytime a *new* Forum ist created, even
if one exists - and it seem not to be persistend..
Carsten.
Logged In: NO
I found out one of the problems is in
viewThreadsAtBottom:
<metal:block tal:define="results
python:container.sort_modified_ascending(discussion.posts());
The code in the DiscussionTool.py at Line 103:
talkback = getattr( content, 'talkback', None )
if not talkback:
talkback = self._createDiscussionFor( content )
so if there exits a talkback-object no new Discussion will
be created. but it seems that the talkback-object has no
"posts()" Method
i added this two lines:
if getattr(talkback, 'posts', None ) == None:
talkback = self._createDiscussionFor( content )
but now (i think) everytime a *new* Forum ist created, even
if one exists - and it seem not to be persistend..
Carsten.