Author: dmeyer
Date: Sat Apr 22 18:38:10 2006
New Revision: 1468

Modified:
   trunk/beacon/src/monitor.py

Log:
Fix endless (or it looks like this) updates when query a huge
dir which is not handled my the crawler. It's not perfect, it is
down to two updates, I have an idea what the second is but don't
see a way to fix it.


Modified: trunk/beacon/src/monitor.py
==============================================================================
--- trunk/beacon/src/monitor.py (original)
+++ trunk/beacon/src/monitor.py Sat Apr 22 18:38:10 2006
@@ -116,7 +116,6 @@
             # scan? For one part, the changes here here the item changes 
itself,
             # so we would update the client all the time. So it is better to 
wait
             # here. Note: with inotify support this should not happen often.
-            WeakOneShotTimer(self.check, changes).start(1)
             return True
 
         current = self._db.query(**self._query)
@@ -198,6 +197,9 @@
 
     def checked(self, first_call):
         self._checker = None
+        # The client will update its query on this signal, so it should
+        # be safe to do the same here. *cross*fingers*
+        self.items = self._db.query(**self._query)
         self.callback('changed')
         if first_call:
             self.callback('checked')


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to