--- a/server/migractions.py Mon Mar 09 12:12:53 2009 +0100
+++ b/server/migractions.py Tue Mar 10 11:35:52 2009 +0100
@@ -19,8 +19,8 @@
import sys
import os
from os.path import join, exists
+from datetime import datetime
-from mx.DateTime import now
from logilab.common.decorators import cached
from logilab.common.adbh import get_adv_func_helper
@@ -83,7 +83,7 @@
config = self.config
source = config.sources()['system']
helper = get_adv_func_helper(source['db-driver'])
- date = now().strftime('%Y-%m-%d_%H:%M:%S')
+ date = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
app = config.appid
backupfile = backupfile or join(config.backup_dir(),
'%s-%s.dump' % (app, date))
@@ -317,6 +317,7 @@
removedcubes = super(ServerMigrationHelper, self).cmd_remove_cube(cube)
if not removedcubes:
return
+ print removedcubes
fsschema = self.fs_schema
removedcubes_schema = self.config.load_schema()
reposchema = self.repo.schema