[CMF-checkins] CVS: CMF - Discussions.py:1.5
tseaver@digicool.com
tseaver@digicool.com
Sat, 2 Jun 2001 14:25:02 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/tmp/cvs-serv31076
Modified Files:
Discussions.py
Log Message:
- Remove 'paranoia' print (thanks to Chris Withers for the patch)
--- Updated File Discussions.py in package CMF --
--- Discussions.py 2001/05/11 03:41:43 1.4
+++ Discussions.py 2001/06/02 18:25:01 1.5
@@ -243,8 +243,8 @@
while parent and (not size or len(parents) < size):
if parent in parents:
# Paranoia: circular thread
- print self.absolute_url(), "is in a circular thread"
- break
+ raise RuntimeException, ( "%s is in a circular thread"
+ % self.absolute_url() )
parents.append(parent)
parent = hasattr(parent, 'inReplyTo') and parent.inReplyTo()
parents.reverse()