Roundup Tracker - Issues

Message1545

Author cgroves
Recipients
Date 2004-12-08.16:41:04
Message-id
In-reply-to
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...

History
Date User Action Args
2009-02-03 14:21:02adminlinkissue1081454 messages
2009-02-03 14:21:02admincreate