--- 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()