Opened 10 years ago

'Fragment' object has no attribute 'replace' error

Reported by: Owned by: paresh.solanki@… normal SimileTimelinePlugin major 0.10

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

comment:1 follow-up:  2 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@…

• 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 follow-up:  5 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@…

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