Modify

Opened 10 years ago

Last modified 2 years ago

#1368 new defect

'Fragment' object has no attribute 'replace' error

Reported by: paresh.solanki@… Owned by:
Priority: normal Component: SimileTimelinePlugin
Severity: major Keywords:
Cc: Trac Release: 0.10

Description (last modified by Ryan J Ollos)

I am using Trac V0.10 and the current timeline plugin from this site with no changes (even left the hard coded date alone)

The traceback is:
Traceback (most recent call last):
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 356, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 224, in dispatch
    resp = chosen_handler.process_request(req)
  File "build\bdist.win32\egg\stimeline\web_ui.py", line 105, in process_request
AttributeError: 'Fragment' object has no attribute 'replace'

I get this error when the 'changeset_show_files' option is set to anything other than 0. I am setting this through the admin module's timline section.

Setting this to 0 produces a valid timeline

Attachments (0)

Change History (7)

comment:1 Changed 10 years ago by fox_ntnkcf@…

  • i got this message also ('Fragment' object has no attribute 'replace')
    • using python 2.3
  • when i set [timeline].changeset_show_files = 0 the timeline showed up but there was no data / empty dataset :(
  • I can see the normal course of events on the regular Timeline
  • TracSimileTimeline-0.1-py2.3.egg
  • Trac 0.10.3.1

comment:2 in reply to:  1 Changed 10 years ago by fox_ntnkcf@…

Replying to fox_ntnkcf@trashmail.net:

  • when i set [timeline].changeset_show_files = 0 the timeline showed up but there was no data / empty dataset :(

never mind - i didn't realize it had some wack start date - scrolled all the way back to present and saw some data ...

comment:3 Changed 10 years ago by anonymous

You can fix the date problem by editing similie.js and removing the two instances of hard coded dates. This will make the timeline default to 'today' and you can scroll around like normal

comment:4 Changed 10 years ago by anonymous

I forgot to add that you need to rebuild the .egg file and copy it into the plugin directory to get it to work

comment:5 in reply to:  4 Changed 10 years ago by fox_ntnkcf@…

Replying to anonymous:

I forgot to add that you need to rebuild the .egg file and copy it into the plugin directory to get it to work

Thanks for the help! I ended up doing as you said and it worked and I was also able to change the html template's style along the way. I learned a bit more about eggs and so forth and have a working fancy timeline :)

thanks again

comment:6 Changed 5 years ago by Ryan J Ollos

Description: modified (diff)

#1459 closed as a duplicate.

comment:7 Changed 2 years ago by Ryan J Ollos

Owner: Noah Kantrowitz deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.