I ended up having to make only two changes:
change the import line to:
from pyjamas.ui import KeyboardListener
modify the content and source attribute in views/default/todoApp.html
to include the output/ path, like:
<html>
<head>
<meta name="pygwt:module"
content="{{=URL(r=request,c='static',f='output/
TodoApp')}}">
<title>Simple Todo Application</title>
</head>
<body bgcolor="white">
<h1>views Simple Todo Application</h1>
<i>Type a new task to insert in db, click on existing task to
delete it</i>
<script language="javascript"
src="{{=URL(r=request,c='static',f='output/
bootstrap.js')}}">
</script>
</body>
</html>
I am new to this, so I don't know if it is more proper to move the
files in the output folder into the static folder, or point the
directory to the output folder...
Thanks to Stefaan for the help. The best clue I ran across was
opening up the static/output/TodoApp.html in the browser and seeing
the form displayed, so I knew the program was there and operating, but
the view wasn't pointing to the correct location.
anyone else working thru the pyjamas book using web2py?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---