Bugs item #1424667, was opened at 2006-02-05 20:57
Message generated for change (Comment added) made by phd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1424667&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: DBM
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Karl Bartel (karlb)
Assigned to: Nobody/Anonymous (nobody)
Summary: 'maximum recursion depth exceeded' when __len__ is defined
Initial Comment:
class BugListEntry(SQLObject):
bug_list = ForeignKey('BugList')
class BugList(SQLObject):
entries = MultipleJoin('BugListEntry')
def __len__(self):
return len(self.entries)
When I'm calling 'BugList()' I get a 'RuntimeError: maximum recursion
depth exceeded'. Is this a bug in SQLObject, or am I doing something
wrong?
It works fine when I'm removing the '__len__' method.
I'm using SQLObject as a part of TurboGears 8.8 with an SQLite database.
----------------------------------------------------------------------
>Comment By: Oleg Broytmann (phd)
Date: 2006-02-06 22:14
Message:
Logged In: YES
user_id=4799
I cannot reproduce it. The program doesn't raise an
exception. Can you write a complete test program (without
TG) and show the exception it raises?
BTW, look at the FAQ in the repository:
http://svn.colorstudy.com/SQLObject/docs/FAQ.txt to
understand the reasons why there is no __len__.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1424667&group_id=74338
|