Changeset 744

Show
Ignore:
Timestamp:
07/25/08 10:51:49 (4 months ago)
Author:
sylvain
Message:

Changed the repr() of a Node to display more relevant information

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • oss/headstock/headstock/api/discovery.py

    r723 r744  
    4040         
    4141    def __repr__(self): 
    42         return '<Item %s at %s>' % (str(self.jid), hex(id(self))) 
     42        return '<Item %s %s at %s>' % (self.node or '', str(self.name), 
     43                                       hex(id(self))) 
    4344 
    4445class Subscription(object):