[CMF-checkins] CVS: Products/CMFDefault - DiscussionItem.py:1.19
Jens Vagelpohl
jens@zope.com
Wed, 10 Oct 2001 15:39:00 -0400
Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv12760/CMFDefault
Modified Files:
DiscussionItem.py
Log Message:
Horrible kludgy workaround for the issue where trying to reply to
an object named "index_html" would fail.
The whole Discussions stuff needs to be redone big time methinks...
=== Products/CMFDefault/DiscussionItem.py 1.18 => 1.19 ===
if target is not None:
return target
+
else:
try:
return self._container.get(name).__of__(self)
except:
- REQUEST.RESPONSE.notFoundError("%s\n%s" % (name, ''))
+ parent = aq_parent( aq_inner( self ) )
+ if parent.getId() == name:
+ return parent
+ else:
+ REQUEST.RESPONSE.notFoundError("%s\n%s" % (name, ''))
security.declarePrivate( 'manage_beforeDelete' )
def manage_beforeDelete(self, item, container):