Author: dmeyer
Date: Sun Oct 21 12:45:13 2007
New Revision: 10007
Log:
use yield_execution because otherwise gc will delete the dir before we can use
it
Modified:
trunk/ui/src/directory.py
Modified: trunk/ui/src/directory.py
==============================================================================
--- trunk/ui/src/directory.py (original)
+++ trunk/ui/src/directory.py Sun Oct 21 12:45:13 2007
@@ -327,6 +327,7 @@
return
+ @kaa.notifier.yield_execution()
def browse(self):
"""
build the items for the directory
@@ -351,12 +352,10 @@
if self.query is None:
self.query = kaa.beacon.query(parent=self.info)
+ if not self.query.valid:
+ yield self.query.wait()
self.query.signals['changed'].connect_weak(self.browse)
self.query.monitor()
- if not self.query.valid:
- # the changed signal will be called when the listing
- # is ready and this will trigger browse again.
- return
listing = self.query.get(filter='extmap')
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog