Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #598 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

JSLinks on widgets appear three times on each page

Reported by: bjourne Owned by: anonymous
Priority: high Milestone: 0.9a2
Component: TG Widgets Version:
Severity: major Keywords:
Cc:

Description

I'm displaying a widget that uses external files (i.e.: the AutoCompleteField widget) using code like this: <span>${widget.display()}</span>. This causes links like this: <SCRIPT SRC="/tg_widgets/turbogears/js/MochiKit.js" TYPE="text/javascript"></SCRIPT> to appear three times on the page. First in the head, then in the top of the body and then in the bottom of the body.

Change History

comment:1 Changed 13 years ago by michele

I fixed this problem on #515 but my change is not there anymore. :-(

comment:2 Changed 13 years ago by bjourne

Seems like your fix was undone in r791. Maybe someone can produce a unittest so this problem doesn't resurface?

comment:3 Changed 13 years ago by michele

  • Cc simon.belak@… added

Yes, that's a good idea in the meantime I will ping Simon to fix again this problem since he is our controllers.py guru (and the one to blame in this case :P).

comment:4 Changed 13 years ago by simon

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r796. Thanks!

P.S. at times I am such an idiot ;)

comment:5 Changed 13 years ago by michele

Thanks to you Simon! ;)

comment:6 Changed 13 years ago by alberto

  • Status changed from closed to reopened
  • Cc simon.belak@… removed
  • Resolution fixed deleted

This ticket has been revived by r924 (or nearby). 4 tests failing :(

comment:7 Changed 13 years ago by anonymous

  • Priority changed from normal to high
  • Severity changed from normal to major
  • Milestone set to 0.9a2

comment:8 Changed 13 years ago by alberto

  • Status changed from reopened to closed
  • Resolution set to fixed

Fixed my own mistake at r930...

Note: See TracTickets for help on using tickets.