Author: dmeyer
Date: Thu Sep 13 13:39:07 2007
New Revision: 2803

Log:
store only int dates

Modified:
   trunk/beacon/src/server/parser.py

Modified: trunk/beacon/src/server/parser.py
==============================================================================
--- trunk/beacon/src/server/parser.py   (original)
+++ trunk/beacon/src/server/parser.py   Thu Sep 13 13:39:07 2007
@@ -305,6 +305,11 @@
         for function in extention_plugins[ext]:
             function(item, attributes)
 
+    # FIXME: this should not be needed if kaa.metadata works correctly
+    attributes['date'] = 0
+    if metadata.get('date') and isinstance(metadata.get('date'), int):
+        attributes['date'] = metadata.get('date')
+
     while db.read_lock.is_locked():
         # wait for the db to be free for write access
         yield db.read_lock.yield_unlock()

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to