server/migractions.py
branchtls-sprint
changeset 1036 593df4919845
parent 1016 26387b836099
child 1263 01152fffd593
--- a/server/migractions.py	Tue Mar 10 19:35:15 2009 +0100
+++ b/server/migractions.py	Tue Mar 10 19:35:38 2009 +0100
@@ -283,7 +283,7 @@
         if not update_database:
             self.commit()
             return
-        newcubes_schema = self.config.load_schema()
+        newcubes_schema = self.config.load_schema(construction_mode='non-strict')
         new = set()
         # execute pre-create files
         for pack in reversed(newcubes):
@@ -317,9 +317,8 @@
         removedcubes = super(ServerMigrationHelper, self).cmd_remove_cube(cube)
         if not removedcubes:
             return
-        print removedcubes
         fsschema = self.fs_schema
-        removedcubes_schema = self.config.load_schema()
+        removedcubes_schema = self.config.load_schema(construction_mode='non-strict')
         reposchema = self.repo.schema
         # execute pre-remove files
         for pack in reversed(removedcubes):
@@ -1075,7 +1074,6 @@
             if not self._h.confirm('execute rql: %s ?' % msg):
                 raise StopIteration
         try:
-            #print rql, kwargs
             rset = self._h.rqlcursor.execute(rql, kwargs)
         except Exception, ex:
             if self._h.confirm('error: %s\nabort?' % ex):