Changeset 3656

Show
Ignore:
Timestamp:
26/10/08 21:12:49 (2 months ago)
Author:
hmeine
Message:

some more beacon Query API adaptations to fix stuff like this:

# beacon-search —monitor foo
No results.
Query took 0.0706918239594 seconds; 0 results
2008-10-26 21:02:53,623 [ERROR] rpc(282): Socket closed before authentication completed
Traceback (most recent call last):

[…]
File "/usr/lib/python2.5/site-packages/kaa/beacon/client.py", line 264, in _reconnect

query.monitor(True)

TypeError?: 'bool' object is not callable

Dischi, I hope all these changes were your intention when you
changed the API

Location:
trunk/beacon/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/beacon/src/client.py

    r3629 r3656  
    262262            if query != None and query._beacon_monitoring: 
    263263                query._beacon_monitoring = False 
    264                 query.monitor(True) 
     264                query.monitor = True 
    265265 
    266266        return False 
     
    384384            if query._beacon_monitoring: 
    385385                query._beacon_monitoring = False 
    386                 query.monitor(True) 
     386                query.monitor = True 
    387387        for m in new_media: 
    388388            if not m.mountpoint == '/': 
  • trunk/beacon/src/query.py

    r3640 r3656  
    251251        # queries. There is already a weakref in client.py 
    252252        if self._beacon_monitoring: 
    253             self.monitor(False) 
     253            self.monitor = False 
    254254 
    255255