Author: tack
Date: Tue Apr 25 23:14:20 2006
New Revision: 1504

Modified:
   trunk/beacon/src/directory.py
   trunk/beacon/src/item.py
   trunk/beacon/src/parser.py

Log:
Use mtime == None as invalid, rather than 0.  Believe it or not I actually
had a file that had mtime of 1969-12-31 19:00:00.00, which is timestamp of
0 :)


Modified: trunk/beacon/src/directory.py
==============================================================================
--- trunk/beacon/src/directory.py       (original)
+++ trunk/beacon/src/directory.py       Tue Apr 25 23:14:20 2006
@@ -105,7 +105,7 @@
         try:
             return os.stat(self.filename)[stat.ST_MTIME]
         except (OSError, IOError):
-            return 0
+            return None
 
 
     def _beacon_request(self):

Modified: trunk/beacon/src/item.py
==============================================================================
--- trunk/beacon/src/item.py    (original)
+++ trunk/beacon/src/item.py    Tue Apr 25 23:14:20 2006
@@ -89,7 +89,7 @@
         """
         Return modification time of the item itself.
         """
-        return 0
+        return None
 
 
     def _beacon_changed(self):

Modified: trunk/beacon/src/parser.py
==============================================================================
--- trunk/beacon/src/parser.py  (original)
+++ trunk/beacon/src/parser.py  Tue Apr 25 23:14:20 2006
@@ -48,7 +48,7 @@
 def parse(db, item, store=False):
     log.debug('check %s', item.url)
     mtime = item._beacon_mtime()
-    if not mtime:
+    if mtime == None:
         log.warning('no mtime, skip %s' % item)
         return
     parent = item._beacon_parent


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