#2309: ToscaWidgets / JSLink Thread Safety Issue
----------------------+-----------------------------------------------------
 Reporter:  pedersen  |       Owner:  Chris Arndt
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:             
Component:  Widgets   |     Version:  2.0rc1     
 Severity:  normal    |    Keywords:             
----------------------+-----------------------------------------------------
 I've come across a truly unusual issue. I'm still working on finding the
 root cause, but I finally have enough to report the issue. I'm not sure if
 this is a TurboGears issue, or if it is a ToscaWidgets issue. I'm
 reporting the bug in both projects.

 The configuration in use when this problem occurs:
 TurboGears 2.0rc1
 ToscaWidgets-0.9.5dev_20081026

 Running behind Apache (2.2.9-7ubuntu3) w/mod_wsgi (2.3-1), running on
 Ubuntu 8.10.

 The problem itself is intermittent, and seems to occur about once in every
 four tries. It seems to be most easily reproduced with Opera.

 I have packaged MochiKit as a widget for use with my app. I wanted
 MochiKit 1.4, and 1.3 was the latest included. To do so, I used the
 following code:

 {{{
 from tw.api import JSLink

 mochikit = JSLink(filename="static/MochiKit.js",
 modname="cardlist.widgets.jslibs")
 }}}

 I then inserted a reference to mochikit into my base controller, using
 this line:

 {{{
 tmpl_context.mochikit = mochikit
 }}}

 Finally, I made sure to include the mochikit output in my master.html, so
 it would be accessible everywhere, using this line:

 {{{
 ${tmpl_context.mochikit()}
 }}}

 The problem, when it occurred, would be visible when someone clicked the
 login link (going to /login ). The came_from would, sometimes, be set to
 "/toscawidgets/resources". When I remove the "modname" parameter from the
 JSLink above, the problem never occurs.

 My entire codebase may be viewed by visiting http://svn.icelus.tzo.com/

 I am attempting to dig deeper into this, but felt that the bug might be
 able to benefit from more eyes. As such, I'm submitting finally, and
 hoping you can help.

 Thank you!

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2309>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to