Roundup Tracker - Issues

Issue 1242477

classification
backend_metakit.py: AttributeError in _Database.close()
Type: Severity: normal
Components: Database Versions:
process
Status: closed fixed
:
: richard : glandrum, richard
Priority: normal :

Created on 2005-07-21 17:49 by glandrum, last changed 2006-04-27 05:48 by richard.

Messages
msg2005 Author: [hidden] (glandrum) Date: 2005-07-21 17:49
I encountered this while configuring my tracker (using
a metakit backend) to integrate with svn.

Here's the exception from the logfile:
2005-07-21 10:43:07,974 ERROR top level
Traceback (most recent call last):
  File "/home2/svn/RD/hooks/notify-roundup.py", line
363, in ?
    svn.core.run_app(main)
  File "/usr/local/lib/svn-python/svn/core.py", line
40, in run_app
    return apply(func, (pool,) + args, kw)
  File "/home2/svn/RD/hooks/notify-roundup.py", line
63, in main
    notify_local(cfg.get('local', 'tracker-home'), repos)
  File "/home2/svn/RD/hooks/notify-roundup.py", line
118, in notify_local
    db.close()
  File
"/usr/local/lib/python2.3/site-packages/roundup/backends/back_metakit.py",
line 311, \
in close
    self.indexer.close()

The straightforward solution is to replace the
offending function call (line 311 of back_metakit.py) with:
        if hasattr(self.indexer,'close'):
          self.indexer.close()
 
msg2006 Author: [hidden] (richard) Date: 2006-04-27 05:48
Logged In: YES 
user_id=6405

Even better, I've implemented the close() method on all indexers.
History
Date User Action Args
2005-07-21 17:49:48glandrumcreate