[schema migration] fix name error introduced in parent changeset stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 01 Jul 2010 08:32:27 +0200
branchstable
changeset 5846 0337e6870de4
parent 5845 4e28f03651d4
child 5847 51636c991fb4
[schema migration] fix name error introduced in parent changeset
hooks/syncschema.py
--- a/hooks/syncschema.py	Thu Jul 01 08:13:03 2010 +0200
+++ b/hooks/syncschema.py	Thu Jul 01 08:32:27 2010 +0200
@@ -252,9 +252,9 @@
         session = self.session
         if 'fulltext_container' in self.values:
             for subjtype, objtype in rschema.rdefs:
-                hook.set_operation(self._cw, 'fti_update_etypes', subjtype,
+                hook.set_operation(session, 'fti_update_etypes', subjtype,
                                    UpdateFTIndexOp)
-                hook.set_operation(self._cw, 'fti_update_etypes', objtype,
+                hook.set_operation(session, 'fti_update_etypes', objtype,
                                    UpdateFTIndexOp)
         if not 'inlined' in self.values:
             return # nothing to do
@@ -522,7 +522,7 @@
                 sql = adbh.sql_set_null_allowed(table, column, coltype, notnull)
             session.system_sql(sql)
         if 'fulltextindexed' in self.values:
-            hook.set_operation(self._cw, 'fti_update_etypes', etype,
+            hook.set_operation(session, 'fti_update_etypes', etype,
                                UpdateFTIndexOp)