Ticket #3588 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

AttributeError: 'int' object has no attribute 'replace'

Reported by: louise@bujj.be Assigned to: bobbysmith007
Priority: normal Component: TimingAndEstimationPlugin
Severity: blocker Keywords: AttributeError
Cc: Trac Release: 0.11

Description

TRAC version: 0.11.1 (stable)

Following error message on Python console when i want to modify "Add Hours to Ticket" field on tickets created before TimingAndEstimationPlugin installed:

"AttributeError: 'int' object has no attribute 'replace'"

I made a quick fix in file ticket_daemon.py, line: 75 like this:

        #convertfloat = lambda x: float(x.replace(',','.'))                                                                   
        convertfloat = lambda x: float(str(x).replace(',','.')) 

Attachments

Change History

08/21/08 12:51:51 changed by bobbysmith007

  • status changed from new to closed.
  • resolution set to fixed.

(In [4170]) closes #3588 re #3579 thanks for catching that, this patch fixes a bug where i would occasionaly try to replace on a value I wasnt sure was a string

08/21/08 12:52:15 changed by bobbysmith007

(In [4171]) closes #3588 re #3579 thanks for catching that, this patch fixes a bug where i would occasionaly try to replace on a value I wasnt sure was a string

08/21/08 12:54:43 changed by bobbysmith007

sorry... please update to the most recent svn revision and it should work now (your patch has been committed)


Add/Change #3588 (AttributeError: 'int' object has no attribute 'replace')




Change Properties
Action