Roundup Tracker - Issues

Issue 1238571

classification
export needs hack for intervals as well
Type: Severity: normal
Components: Command-line interface Versions:
process
Status: closed fixed
:
: richard : richard
Priority: normal :

Created on 2005-07-15 00:35 by anonymous, last changed 2005-07-18 01:35 by richard.

Messages
msg1989 Author: [hidden] (anonymous) Date: 2005-07-15 00:35
After my export failed, I looked around where the error
occured, back_anydbm.py line 2031:

   2022                         # make sure the params
are eval()'able
   2023                         if value is None:
   2024                             # don't export empties
   2025                             continue
   2026                         elif isinstance(prop,
hyperdb.Date):
   2027                             # this is a hack -
some dates are stored as strings
   2028                             if not
isinstance(value, type('')):
   2029                                 value =
value.get_tuple()
   2030                         elif isinstance(prop,
hyperdb.Interval):
   2031                             value =
value.get_tuple()
   2032                         elif isinstance(prop,
hyperdb.Password):
   2033                             value = str(value)
   2034                         export_data[propname] =
value

The problem was that one of the intervals that were
trying to export was stored as a string too apparently.
There were 3 such of these in my tracker and i have
maybe a dozen or so total intervals. I got around it by
copying lines 2027-2028 to after line 2030

This was from 0.8.3 on winXP with Python 2.4.1 build
245 (activestate)

- scottopoly at gmail dot com
msg1990 Author: [hidden] (richard) Date: 2005-07-18 01:35
Logged In: YES 
user_id=6405

 
History
Date User Action Args
2005-07-15 00:35:52anonymouscreate