fix name error fixed in wrong branch stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 08 Mar 2010 09:00:23 +0100
branchstable
changeset 4825 cdd979ae1b57
parent 4824 b01973eff0f7
child 4826 7eba168407c3
fix name error fixed in wrong branch
hooks/metadata.py
server/sources/native.py
--- a/hooks/metadata.py	Mon Mar 08 08:59:07 2010 +0100
+++ b/hooks/metadata.py	Mon Mar 08 09:00:23 2010 +0100
@@ -21,7 +21,7 @@
     if eschema.eid is None:
         eschema.eid = session.unsafe_execute(
             'Any X WHERE X is CWEType, X name %(name)s',
-            {'name': str(etype)})[0][0]
+            {'name': str(eschema)})[0][0]
     return eschema.eid
 
 
--- a/server/sources/native.py	Mon Mar 08 08:59:07 2010 +0100
+++ b/server/sources/native.py	Mon Mar 08 09:00:23 2010 +0100
@@ -208,7 +208,7 @@
         # check full text index availibility
         if self.do_fti:
             if not self.indexer.has_fti_table(pool['system']):
-                if not repo.config.creating:
+                if not self.repo.config.creating:
                     self.critical('no text index table')
                 self.do_fti = False
         pool.pool_reset()