Two javascript link errors in tw.dojo

5 views
Skip to first unread message

Wesley Dyk

unread,
Jul 30, 2010, 12:17:14 PM7/30/10
to turbo...@googlegroups.com
I am trying to use CrudRestController, but am getting nothing
populating the Table when after the request completes. I see two
javascript includes that error out (404 Not Found), QueryReadStore.js
and TGDojoRestStore.js. The paths for these scripts don't follow the
same form as the other dojo includes.

http://wesdyklt:8080/toscawidgets/resources/tw.dojo/dojox/data/QueryReadStore.js
as opposed to
http://wesdyklt:8080/toscawidgets/resources/tw.dojo/static%5C1.4.1%5Cmin%5Cdojo/date/stamp.js
which succeeds.

What is the reason for this? The actual scripts are located in the
same directory structure described by the second link. For instance,
manually creating the URL:

http://wesdyklt:8080/toscawidgets/resources/tw.dojo/static%5C1.4.1%5Cmin%5Cdojox/data/QueryReadStore.js

succeeds. My javascript experience is very limited, but my
understanding is that the call
dojo.require("dojox.data.QueryReadStore") requests the script from the
server. How do I point this in the right direction?

Thanks for the assistance.

Wes

Laurent LM

unread,
Sep 13, 2011, 11:59:24 AM9/13/11
to turbo...@googlegroups.com

I'm surprised this message had no response and I find no more info on the web
on this.

I installed TG2 on Windows ; a fresh install on a fresh python 2.7 ->
tg.devtools-2.1.2-py2.7.
I added dojo v0.9.9.

On the admin website, the dojo grid does not work. I get this instead of the
grid:
"__actions__ user_name email_address display_name created groups."

Using firebug I see that 2 js files are missing:
http://localhost:8080/toscawidgets/resources/tw.dojo/dojox/data/QueryReadStore.js
http://localhost:8080/toscawidgets/resources/tw.dojo/twdojo/data/TWDojoRestStore.js
whilst other js are found in e.g.
http://localhost:8080/toscawidgets/resources/tw.dojo/static%5C1.4.1%5Cmin%5Cdojo/parser.js

Looking in the directory tree I see that these files are actually in:
C:\tg2env\Lib\site-packages\tw.dojo-0.9.9-py2.7.egg\tw\dojo\static\1.4.1\min\dojox\data
C:\tg2env\Lib\site-packages\tw.dojo-0.9.9-py2.7.egg\tw\dojo\static\1.4.1\min\twdojo\data

looking in the html code I find mention of
<div dojoType="dojox.data.QueryReadStore" jsId="_store" id="_store"
xhrArgs="{preventCache:true}" url="../users.json"></div>
and
dojo.require("twdojo.data.TWDojoRestStore")

But I don't find why these files are not looked up in a subdirectory of
static/1.4.1/min

I tried to copy the 2 files in tw.dojo-0.9.9-py2.7.egg\tw\dojo\dojox\data
and twdojo\data with no success.

Is it something linked to the windows distribution ? Are we alone with this
problem on TG2 with Dojo ?

help welcome...

--
View this message in context: http://old.nabble.com/Two-javascript-link-errors-in-tw.dojo-tp29307685p32456968.html
Sent from the Turbogears General mailing list archive at Nabble.com.

Alessandro Molina

unread,
Sep 13, 2011, 3:00:08 PM9/13/11
to turbo...@googlegroups.com
Don't know about tw.dojo as I don't use Dojo, but if you need a quick
work-around uninstalling tw.dojo will give you a plain HTML paginated
admin with the same features of the dojo version.

> --
> You received this message because you are subscribed to the Google Groups "TurboGears" group.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
>
>

Michael Pedersen

unread,
Sep 13, 2011, 11:40:44 PM9/13/11
to turbo...@googlegroups.com
Laurent: Looking at your report here, I think this looks like a bug. Please file it at http://sourceforge.net/p/turbogears2/tickets/ so we can fix it. I'd love to fix for 2.1.3, but I think we might be looking more at 2.1.4 at this point.

--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.




--
Michael J. Pedersen
My IM IDs: Jabber/pede...@icelus.tzo.com, AIM/pedermj022171
          Yahoo/pedermj2002, MSN/pederm...@hotmail.com
My Online Resume: http://www.icelus.org/
Twitter: pedersentg

Reply all
Reply to author
Forward
0 new messages