gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump/python/gump/document forrest.py
Date Mon, 01 Mar 2004 22:46:41 GMT
ajack       2004/03/01 14:46:41

  Modified:    python/gump/document forrest.py
  Log:
  Well, dotnot ran w/ this 'results linking' code, and didn't fall over,
  but the results don't seem right. Need to dig in...
  
  Revision  Changes    Path
  1.89      +12 -5     gump/python/gump/document/forrest.py
  
  Index: forrest.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/document/forrest.py,v
  retrieving revision 1.88
  retrieving revision 1.89
  diff -u -r1.88 -r1.89
  --- forrest.py	1 Mar 2004 21:28:00 -0000	1.88
  +++ forrest.py	1 Mar 2004 22:46:41 -0000	1.89
  @@ -1391,6 +1391,8 @@
           serverResults=None
           if isinstance(linkable,Resultable) and linkable.hasServerResults():
               serverResults=linkable.getServerResults()
  +        else:
  +            log.debug('Have no Resultable for statePair ' + `linkable`)
               
           for server in servers: 
           
  @@ -1398,7 +1400,11 @@
               statePair=None
               if serverResults and serverResults.has_key(server):
                   results=serverResults[server]
  -                statePair=results.getStatePair()
  +                if results:
  +                    log.debug('Have statePair ' + `statePair`)
  +                    statePair=results.getStatePair()
  +                else:
  +                    log.debug('Have no results for statePair ' + `server`)
                                   
               # If we can resolve this object to a URL, then do
               xdocNode=None
  @@ -1413,8 +1419,9 @@
                               server.getUrl())  
               
               if xdocNode and statePair:
  +                log.debug('Have xdocNode and statePair ' + `statePair`)
                   depth=getDepthForObject(linkable)
  -                self.insertStatePairIconAtDepth(xdocNode, statePair,depth)
  +                self.insertStatePairIconAtDepth(xdocNode,statePair,depth)
               else:
                   xdocNode.createText('On ' + server.getName())
                   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message