gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: rev 36253 - in gump/trunk/python/gump: model stats/mysql
Date Wed, 11 Aug 2004 20:37:00 GMT
Author: ajack
Date: Wed Aug 11 13:37:00 2004
New Revision: 36253

Modified:
   gump/trunk/python/gump/model/module.py
   gump/trunk/python/gump/stats/mysql/statsdb.py
Log:
More haste (less speed)....

Modified: gump/trunk/python/gump/model/module.py
==============================================================================
--- gump/trunk/python/gump/model/module.py	(original)
+++ gump/trunk/python/gump/model/module.py	Wed Aug 11 13:37:00 2004
@@ -682,4 +682,4 @@
         # Track code updates/changes
         # 
         if module.isModified():
-            self.lastModified=default.default.datetimeObject
\ No newline at end of file
+            self.lastModified=default.datetimeObject
\ No newline at end of file

Modified: gump/trunk/python/gump/stats/mysql/statsdb.py
==============================================================================
--- gump/trunk/python/gump/stats/mysql/statsdb.py	(original)
+++ gump/trunk/python/gump/stats/mysql/statsdb.py	Wed Aug 11 13:37:00 2004
@@ -131,7 +131,14 @@
             
             # Extract that extra
             if settings.has_key('last_modified') and settings['last_modified']:
-                stats.lastModified=settings['last_modified']
+                value=settings['last_modified']
+                if isinstance(value,datetime.datetime):
+                    stats.lastModified=value
+                else:
+                    if not value == '0000-00-00 00:00:00':
+                        setattr(stats,attr,
+                                datetime.datetime.fromtimestamp(time.mktime(time.strptime(value,
+                                                                                '%Y-%m-%d
%H:%M:%S'))))                    
         except IndexError:
             pass
         return stats

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message