[Zope-CMF] overrideDiscussionFor() in discussion tool
Tim Terlegård
tim at se.linux.org
Fri May 7 14:03:47 EDT 2004
I get an error in a method in CMFDefault/DiscussionTool.py, CMF 1.4.2/3
overrideDiscussionFor(self, content, allowDiscussion):
...
if allowDiscussion is None or allowDiscussion == 'None':
if hasattr(content, 'allow_discussion'):
del content.allow_discussion
else:
content.allow_discussion = int(allowDiscussion)
I get "KeyError: allow_discussion" from the del statement.
Does hasattr() use aquisition and del does not? Perhaps this is a bug?
(overrideDiscussionFor is called from within Archetypes)
Tim
More information about the Zope-CMF
mailing list