Bugs item #1424667, was opened at 2006-02-05 18:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1424667&group_id=74338
|