Roundup Tracker - Issues

Issue 1081454

classification
Exception in export on anydbm
Type: Severity: normal
Components: Command-line interface Versions:
process
Status: closed fixed
:
: richard : cgroves, richard
Priority: normal :

Created on 2004-12-08 16:41 by cgroves, last changed 2005-02-14 05:39 by richard.

Messages
msg1545 Author: [hidden] (cgroves) Date: 2004-12-08 16:41
When I use roundup-admin export on my tracker, I get
the following error: 
Traceback (most recent call last):
  File
"/usr/lib/python2.3/site-packages/roundup/admin.py",
line 1273, in run_command
    ret = function(args[1:])
  File
"/usr/lib/python2.3/site-packages/roundup/admin.py",
line 1051, in do_export
    map(journals.writerow, cl.export_journals())
  File
"/usr/lib/python2.3/site-packages/roundup/backends/back_anydbm.py",
line 2057, in export_journals
    value = value.get_tuple()
AttributeError: 'str' object has no attribute 'get_tuple'

I went to line 2057 in back_anydbm.py and here's the
pertinent snippet: 
if value is None:
  pass
elif isinstance(prop, Date):
  value = value.get_tuple()
elif isinstance(prop, Interval):
  value = value.get_tuple()
elif isinstance(prop, Password):
  value = str(value)
params[propname] = value

The exception was thrown on value.get_tuple() in the
elif on Date.  I just removed that elif altogether
since it looked like the code wanted a string and it
was already a string.  Export worked like a charm at
that point...

msg1546 Author: [hidden] (richard) Date: 2004-12-14 22:58
Logged In: YES 
user_id=6405

Hrm. Dates should never be strings :( 
 
Would it be possible for you to send me your database so I can 
poke at it? richard@users.sourceforge.net 
 
 
msg1547 Author: [hidden] (richard) Date: 2005-02-14 05:39
Logged In: YES 
user_id=6405

Have applied hack fix. 
History
Date User Action Args
2004-12-08 16:41:04cgrovescreate