Return-Path: Delivered-To: apmail-gump-general-archive@www.apache.org Received: (qmail 8457 invoked from network); 11 Aug 2004 20:37:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Aug 2004 20:37:03 -0000 Received: (qmail 64425 invoked by uid 500); 11 Aug 2004 20:37:03 -0000 Delivered-To: apmail-gump-general-archive@gump.apache.org Received: (qmail 64296 invoked by uid 500); 11 Aug 2004 20:37:02 -0000 Mailing-List: contact general-help@gump.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Gump code and data" Reply-To: "Gump code and data" Delivered-To: mailing list general@gump.apache.org Received: (qmail 64281 invoked by uid 500); 11 Aug 2004 20:37:02 -0000 Received: (qmail 64273 invoked by uid 99); 11 Aug 2004 20:37:01 -0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 11 Aug 2004 13:37:01 -0700 Received: (qmail 8446 invoked by uid 65534); 11 Aug 2004 20:37:00 -0000 Date: 11 Aug 2004 20:37:00 -0000 Message-ID: <20040811203700.8443.qmail@minotaur.apache.org> From: ajack@apache.org To: cvs@gump.apache.org Subject: svn commit: rev 36253 - in gump/trunk/python/gump: model stats/mysql X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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