Opened 17 years ago

Last modified 3 years ago

#1368 closed defect

'Fragment' object has no attribute 'replace' error — at Version 6

Reported by: paresh.solanki@… Owned by: Noah Kantrowitz
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

Change History (6)

comment:1 Changed 17 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 17 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 17 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 17 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 17 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 12 years ago by Ryan J Ollos

Description: modified (diff)

#1459 closed as a duplicate.

Note: See TracTickets for help on using tickets.