Roundup Tracker - Issues

Issue 699837

classification
timelog editing via csv interface crashes
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed fixed
:
: richard : richard, rouilj
Priority: normal :

Created on 2003-03-08 07:53 by rouilj, last changed 2003-08-12 01:26 by richard.

Files
File name Uploaded Description Edit Remove
error_traceback_timelog.html rouilj, 2003-03-08 07:56 traceback for above crash.
timelog_htm_error_2.htm rouilj, 2003-03-30 06:35 second error message with cvs from 3/29/2003
Messages
msg698 Author: [hidden] (rouilj) Date: 2003-03-08 07:53
Do the following:

create a classic tracker.

Add:

  timelog = Class(db, "timelog", period=Interval())

to dbinit.py, initalise the tracker and log in as admin.

go to the class list and edit the timelog class.
add:

   X,+ 1:10

to the window and try to save changes. You should
get the attached file whose summary is:

TypeError: new property "period" not an Interval Python 
2.2.2
/usr/bin/python2.2 

A problem occurred while running a Python script. Here 
is the sequence of function calls leading up to the error, 
with the most recent (innermost) call first. The exception 
attributes are:
      __doc__ = 'Inappropriate argument type.' 
      __getitem__ = <bound method 
TypeError.__getitem__ of <exceptions.TypeError 
instance>> 
      __init__ = <bound method TypeError.__init__ of 
<exceptions.TypeError instance>> 
      __module__ = 'exceptions' 
      __str__ = <bound method TypeError.__str__ of 
<exceptions.TypeError instance>> 
      args = ('new property "period" not an Interval',)

This is with cygwin python 2.2.2. I first discovered
this while trying to correct a null interval in the timelog
list. I went to edit it and got the same general crash.

-- rouilj
msg699 Author: [hidden] (rouilj) Date: 2003-03-30 06:35
Logged In: YES 
user_id=707416

The cvs from 23 Mar 2003 seems to have changed this
bug. I now get a 
crash that looks like:

AttributeError: 'str' object has no attribute 
'sign' Python 2.2.2
/usr/bin/python2.2 

A problem occurred 
while running a Python script. Here is the sequence of function calls 
leading up to the error, with the most recent (innermost) call first. The 
exception attributes are:
      __doc__ = 'Attribute not found.' 
      
__getitem__ = <bound method AttributeError.__getitem__ of 
<exceptions.AttributeError instance>> 
      __init__ = <bound method 
AttributeError.__init__ of <exceptions.AttributeError instance>> 
      
__module__ = 'exceptions' 
      __str__ = <bound method 
AttributeError.__str__ of <exceptions.AttributeError instance>> 
      
args = ("'str' object has no attribute 
'sign'",)

/usr/lib/python2.2/site-packages/roundup/date.py in 
__cmp__(self=<Interval + 3:55>, other='+ 3:55') 
  425             return 1
  
426         for attr in 'sign year month day hour minute second'.split():
  427             r = 
cmp(getattr(self, attr), getattr(other, attr))
 
      r = undefined, global 
cmp = undefined, global getattr = undefined, self = <Interval + 3:55>, attr 
= 'sign', other = '+ 3:55'
  428             if r:
  429                 return r

The full html is 
attached.
msg700 Author: [hidden] (richard) Date: 2003-08-12 01:26
Logged In: YES 
user_id=6405

... finally
History
Date User Action Args
2003-03-08 07:53:46rouiljcreate