Roundup Tracker - Issues

Issue 971206

classification
import fails with back_metakit
Type: Severity: normal
Components: Database Versions:
process
Status: closed fixed
:
: wc2so1 : kent_turbo, wc2so1
Priority: normal :

Created on 2004-06-11 15:23 by kent_turbo, last changed 2004-06-11 15:23 by kent_turbo.

Files
File name Uploaded Description Edit Remove
metakit_import.patch kent_turbo, 2004-06-11 15:23
Messages
msg1296 Author: [hidden] (kent_turbo) Date: 2004-06-11 15:23
Import of a tracker fails with metakit backend.

Enter tracker home: .
Traceback (most recent call last):
  File
"/home/kent/src/roundup/work/roundup/roundup/admin.py",
line 1287, in run_command
    ret = function(args[1:])
  File
"/home/kent/src/roundup/work/roundup/roundup/admin.py",
line 1128, in do_import
    cl.import_journals(reader)
  File
"/home/kent/src/roundup/work/roundup/roundup/backends/back_metakit.py",
line 1720, in import_journals
    elif isinstance(prop, Date):
NameError: global name 'Date' is not defined

And there are same errors for Interval and Password fields.

Patch included to fix this.
msg1297 Author: [hidden] (wc2so1) Date: 2004-06-11 15:51
Logged In: YES 
user_id=424987

I applied the patch and tried importing a journal.  It seems
to work, but this indicates that we need an import_journal
regression test since this code path was never run
(obviously enough)
History
Date User Action Args
2004-06-11 15:23:27kent_turbocreate