web/test/unittest_views_searchrestriction.py
changeset 8696 0bb18407c053
parent 8544 3d049071957e
child 10658 e73ce169762b
--- a/web/test/unittest_views_searchrestriction.py	Thu Feb 14 15:38:25 2013 +0100
+++ b/web/test/unittest_views_searchrestriction.py	Thu Feb 14 16:01:24 2013 +0100
@@ -79,7 +79,7 @@
         select = self.parse('DISTINCT Any V,TN,L ORDERBY TN,L WHERE T nom TN, V connait T, T is Personne, V is CWUser,'
                             'NOT V in_state VS, VS name "published", V login L')
         rschema = self.schema['connait']
-        for rdefs in rschema.rdefs.values():
+        for rdefs in rschema.rdefs.itervalues():
             rdefs.cardinality =  '++'
         try:
             self.assertEqual(self._generate(select, 'in_state', 'subject', 'name'),
@@ -87,7 +87,7 @@
                               "NOT EXISTS(V in_state VS), VS name 'published', "
                               "V in_state A, A name B")
         finally:
-            for rdefs in rschema.rdefs.values():
+            for rdefs in rschema.rdefs.itervalues():
                 rdefs.cardinality =  '**'
 
     def test_nonregr3(self):