cleanup stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 17 Aug 2010 15:25:29 +0200
branchstable
changeset 6117 f3fdfcbda54b
parent 6116 2530e9c45296
child 6118 45eccda89480
cleanup
server/migractions.py
test/unittest_schema.py
--- a/server/migractions.py	Tue Aug 17 15:25:17 2010 +0200
+++ b/server/migractions.py	Tue Aug 17 15:25:29 2010 +0200
@@ -870,8 +870,8 @@
                          ask_confirm=False)
             # old entity type has not been added to the schema, can't gather it
             new = schema.eschema(newname)
-            oldeid = self.rqlexec('CWEType ET WHERE ET name %(on)s', {'on': oldname},
-                                  ask_confirm=False)[0][0]
+            oldeid = self.rqlexec('CWEType ET WHERE ET name %(on)s',
+                                  {'on': oldname}, ask_confirm=False)[0][0]
             # backport old type relations to new type
             # XXX workflows, other relations?
             for r1, rr1 in [('from_entity', 'to_entity'),
--- a/test/unittest_schema.py	Tue Aug 17 15:25:17 2010 +0200
+++ b/test/unittest_schema.py	Tue Aug 17 15:25:29 2010 +0200
@@ -15,9 +15,7 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""unit tests for module cubicweb.schema
-
-"""
+"""unit tests for module cubicweb.schema"""
 
 import sys
 from os.path import join, isabs, basename, dirname