incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Bloodhound" <bloodhound-...@incubator.apache.org>
Subject Re: [Apache Bloodhound] #22: Infinite recursion error when initialising a plugin that extends itself
Date Wed, 04 Apr 2012 16:16:07 GMT
#22: Infinite recursion error when initialising a plugin that extends itself
------------------------+-------------------------------------
  Reporter:  gjm        |      Owner:  gjm
      Type:  defect     |     Status:  accepted
  Priority:  blocker    |  Milestone:  RC1 for initial release
 Component:  trac core  |    Version:
Resolution:             |   Keywords:
------------------------+-------------------------------------

Comment (by gjm):

 [http://svn.apache.org/viewvc/incubator/bloodhound/trunk/trac/trac/core.py?view=diff&r1=1309469&r2=1309470&pathrev=1309470
 r1309470] fixes by dynamically replacing the __init__ of components with
 one that runs the original __init__ on the condition that it has not
 already been run.

 I suspect what would be better in the long run would be to catch the
 recursion error and turn it into something that can be reported but allows
 Bloodhound to continue working. Plugins should probably keep track of
 whether an instance has already been initialised.

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/22#comment:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker

Mime
View raw message