--- a/server/checkintegrity.py Mon Mar 09 12:12:53 2009 +0100
+++ b/server/checkintegrity.py Tue Mar 10 11:35:52 2009 +0100
@@ -2,14 +2,14 @@
is checked.
:organization: Logilab
-:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
import sys
+from datetime import datetime
-from mx.DateTime import now
from logilab.common.shellutils import ProgressBar
def has_eid(sqlcursor, eid, eids):
@@ -228,8 +228,8 @@
print 'Checking metadata'
cursor = session.system_sql("SELECT DISTINCT type FROM entities;")
for etype, in cursor.fetchall():
- for rel, default in ( ('creation_date', now()),
- ('modification_date', now()), ):
+ for rel, default in ( ('creation_date', datetime.now()),
+ ('modification_date', datetime.now()), ):
cursor = session.system_sql("SELECT eid FROM %s "
"WHERE %s is NULL" % (etype, rel))
for eid, in cursor.fetchall():