Hi there,

Just starting in web2py, I hope I am getting things right. My setup is 
slightly complicated for a newbie, so I am running into tons of issues.

I am serving a pyjamas application with web2py. The backend will be in 
web2py, the frontent in pyjamas.
I have found this nice article on how to integrate 
both: http://web2py.com/books/default/chapter/29/10#JSONRPC-and-Pyjamas

I had to modify it a bit, since pyjamas has evolved. This is my view in 
default/todoAppl.html:

<html>
  <head>
    <meta name="pygwt:module" content="{{=URL('static','output/Portal')}}" 
/>
    <title>
      Activity
    </title>
  </head>
  <body>
    <script language="javascript"
     src="{{=URL('static','output/bootstrap.js')}}">
    </script>
  </body>
</html>

Somehow this is loading the pyjamas application (I am not sure what the 
meta tag is doing there, but it is needed).
But actually, this solution is putting my pyjamas frontend inside an 
iframe, and my pyjamas CSSs are not being loaded.

What I would like at this stage is to completely skip the view, and 
redirect the <application>/default/todoApp url to my pyjamas html, which is 
located in static/output/Portal.html.
I do not want to load the view in default/todoApp.html, but I guess I just 
want to tell the controller to load static/output/Portal.html.
Also, I do not want to issue a redirect to the browser. I just want web2py 
to know that the associated html is not in the usual views/default 
location, but in another place.
Is this at all possible in web2py?

BR,
Daniel

-- 



Reply via email to