I have a strange problem with toscawidget (used into pylons project) and the
access of external resources (css, js).
You can see the illustration of this problem on this page:
http://i18nforms.emencia.net/bug/
When you try to load the page, urls for external resources are sometime ok and
sometimes "resources not found". You could see it more specifically if you try
to load directly this resources (for example:
http://i18nforms.emencia.net/toscawidgets/resources/toscawidgets.widgets.tabber/static/tabber.js?v=1197045633)
Try to load (and re-load) it many times (5 or 6 times should be sufficient)
and you'll see that sometime the file is accessible and sometime not.
This example are run on a fedora box with apache2/mod_wsgi. Strangely, if I run
the application directly with paste server on the same box, all works fine.
More strangely, on an other box (on debian) all works fine with
apache2/mod_wsgi. Environments are almost the same. It's an apache2 on
the 2 boxes (2.0.54 on fedora 2.2.3 on debian) with mod_wsgi2.0c4. I use all
the latest egg version of toscawidget/pylons from the cheeseshop (except lxml
I use 2.0alpha4 on debian and 1.3.6 on fedora).
I try to find on the toscawidget source code where this problem could be
appear with no success ...
In an second time, I have an other question about the packaging of toscawidget
packages. This url are a simple illustration of 2 widgets I developed for
manipulate i18n data on a form. I export them easily into an specifically
python/toscawidget package. But when I generate the egg file the template file
into the template folder is ignored. I imagine that I need to add a specific
instruction into the setup.py file but I don't find documentation about that.
This template is a mako template and his extension is .mak.
Thanks for the help !
--
Philippe Lafaye
So nobody have an answer or tips about this problem ?
--
Philippe Lafaye
This looks like a problem related to the URL->Path mappings TW generates
for static resources being done differently by different processes and
is surely a bug, I've filed a ticket
http://trac.turbogears.org/ticket/1777 for it.
Alberto