Author: dmeyer
Date: Sat Oct 13 11:27:13 2007
New Revision: 2863

Log:
yield to avoid too many notifier.step recursion

Modified:
   trunk/feedmanager/src/core.py

Modified: trunk/feedmanager/src/core.py
==============================================================================
--- trunk/feedmanager/src/core.py       (original)
+++ trunk/feedmanager/src/core.py       Sat Oct 13 11:27:13 2007
@@ -187,11 +187,15 @@
         log.info('update feed %s', self.url)
 
         # get directory information
-        beacondir = kaa.beacon.get(self.dirname)
+        query = kaa.beacon.query(filename=self.dirname)
+        if not query.valid:
+            yield query.wait()
+        beacondir = query.get()
+        
         listing = beacondir.list()
-        if isinstance(listing, kaa.notifier.InProgress):
-            yield listing
-            listing = listing.get_result()
+        if not listing.valid:
+            yield listing.wait()
+            
         allurls = [ f.url for f in listing ]
 
         num = self._num
@@ -280,7 +284,10 @@
             return
 
         # get directory information
-        beacondir = kaa.beacon.get(self.dirname)
+        query = kaa.beacon.query(filename=self.dirname)
+        if not query.valid:
+            yield query.wait()
+        beacondir = query.get()
         allurls = [ e[0] for e in self._entries ]
         listing = beacondir.list()
         if isinstance(listing, kaa.notifier.InProgress):

-------------------------------------------------------------------------
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

Reply via email to