Author: dmeyer
Date: Thu Jun 28 20:36:31 2007
New Revision: 2749

Modified:
   trunk/WIP/beacon2/src/server/crawl.py

Log:
add commit on inotify callback

Modified: trunk/WIP/beacon2/src/server/crawl.py
==============================================================================
--- trunk/WIP/beacon2/src/server/crawl.py       (original)
+++ trunk/WIP/beacon2/src/server/crawl.py       Thu Jun 28 20:36:31 2007
@@ -255,6 +255,8 @@
             self._scan_add(move._beacon_parent, recursive=False)
 
             if not mask & INotify.ISDIR:
+                # commit changes so that the client may get notified
+                self._db.commit()
                 yield True
 
             # The directory is a dir. We now remove all the monitors to that
@@ -263,6 +265,8 @@
             self.monitoring.remove(name + '/', recursive=True)
             # now make sure the directory is parsed recursive again
             self._scan_add(move, recursive=True)
+            # commit changes so that the client may get notified
+            self._db.commit()
             yield True
 
         # ---------------------------------------------------------------------
@@ -328,6 +332,8 @@
             self.monitoring.remove(name + '/', recursive=True)
         # rescan parent directory
         self._scan_add(item._beacon_parent, recursive=False)
+        # commit changes so that the client may get notified
+        self._db.commit()
         yield True
 
 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to