Changeset 3657
- Timestamp:
- 28/10/08 18:18:34 (2 months ago)
- Location:
- trunk
- Files:
-
- 8 modified
-
DEPRECATED/player/test/baloo.py (modified) (1 diff)
-
beacon/bin/beacon-search (modified) (1 diff)
-
beacon/doc/query.rst (modified) (1 diff)
-
beacon/src/client.py (modified) (2 diffs)
-
beacon/src/fusefs.py (modified) (1 diff)
-
beacon/src/query.py (modified) (6 diffs)
-
beacon/test/beacon_gtk.py (modified) (1 diff)
-
popcorn/test/baloo.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DEPRECATED/player/test/baloo.py
r3648 r3657 58 58 self.search = kaa.beacon.query(type='audio', keywords=string) 59 59 self.search.signals['changed'].connect(self.update_playlist) 60 self.search.monitor = True60 self.search.monitor() 61 61 self.update_playlist() 62 62 if self.current: -
trunk/beacon/bin/beacon-search
r3648 r3657 281 281 result.signals['progress'].connect(progress) 282 282 result.signals['up-to-date'].connect(uptodate) 283 result.monitor = True283 result.monitor() 284 284 285 285 if __name__ == '__main__': -
trunk/beacon/doc/query.rst
r3640 r3657 29 29 FIXME: Describe monitoring here 30 30 31 .. auto attribute:: beacon.Query.monitor31 .. automethod:: beacon.Query.monitor 32 32 .. autofunction:: beacon.monitor 33 33 -
trunk/beacon/src/client.py
r3656 r3657 262 262 if query != None and query._beacon_monitoring: 263 263 query._beacon_monitoring = False 264 query.monitor = True264 query.monitor() 265 265 266 266 return False … … 384 384 if query._beacon_monitoring: 385 385 query._beacon_monitoring = False 386 query.monitor = True386 query.monitor() 387 387 for m in new_media: 388 388 if not m.mountpoint == '/': -
trunk/beacon/src/fusefs.py
r3648 r3657 70 70 self._query_update_time = 0 71 71 query.signals["changed"].connect_weak(self._query_changed) 72 query.monitor = True72 query.monitor() 73 73 74 74 fuse.Fuse.__init__(self, *args, **kw) -
trunk/beacon/src/query.py
r3656 r3657 37 37 # kaa imports 38 38 import kaa 39 from kaa.utils import property40 39 41 40 # kaa.beacon imports … … 108 107 return self._async 109 108 110 @property 111 def monitor(self): 109 def monitor(self, enable=True): 112 110 """ 113 111 Turn on/off query monitoring 114 112 """ 115 return self._beacon_monitoring 116 117 @monitor.setter 118 def monitor(self, status): 119 """ 120 Turn on/off query monitoring 121 """ 122 if self._beacon_monitoring == status: 113 if self._beacon_monitoring == enable: 123 114 # Nothing to do 124 115 return … … 126 117 # If the client is not connected yet, it will do this later. 127 118 # Rememeber that we wanted to connect 128 self._beacon_monitoring = status119 self._beacon_monitoring = enable 129 120 return 130 if status:121 if enable: 131 122 query = copy.copy(self._query) 132 123 if 'parent' in query: … … 135 126 # We need the get the id first. Call the function again 136 127 # when there is an id. 137 parent.scan().connect(self.monitor, status)128 parent.scan().connect(self.monitor, enable) 138 129 return 139 130 query['parent'] = parent._beacon_id … … 142 133 self._rpc('monitor.remove', self._client.id, self.id) 143 134 # Store current status 144 self._beacon_monitoring = status135 self._beacon_monitoring = enable 145 136 146 137 … … 251 242 # queries. There is already a weakref in client.py 252 243 if self._beacon_monitoring: 253 self.monitor = False244 self.monitor(False) 254 245 255 246 -
trunk/beacon/test/beacon_gtk.py
r3648 r3657 123 123 self.search = yield kaa.beacon.query(keywords=data.get_text(), type='audio') 124 124 self.search.signals['changed'].connect(self._update_list) 125 self.search.monitor = True125 self.search.monitor() 126 126 self._update_list() 127 127 -
trunk/popcorn/test/baloo.py
r3648 r3657 58 58 self.search = yield kaa.beacon.query(type='audio', keywords=string) 59 59 self.search.signals['changed'].connect(self.update_playlist) 60 self.search.monitor = True60 self.search.monitor() 61 61 self.update_playlist() 62 62 if self.current:
