Modify

Opened 8 years ago

Last modified 6 months ago

#1368 new defect

'Fragment' object has no attribute 'replace' error

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

Description (last modified by rjollos)

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 (6)

comment:1 follow-up: Changed 8 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 8 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 8 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: Changed 8 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 8 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 2 years ago by rjollos

  • Description modified (diff)

#1459 closed as a duplicate.

Add Comment

Modify Ticket

Action
as new The owner will remain coderanger.
Author


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

 
Note: See TracTickets for help on using tickets.