Hi there,

I am starting with web2by, and my first project is a bit convoluted, so I 
am running into lots of different problems.

My goal is to have a web application with web2py for the backend 
operations, interfacing with a pyjamas frontend, via JSONRPC.
There is a nice article describing this setup here:
http://web2py.com/books/default/chapter/29/10#JSONRPC-and-Pyjamas

This is my views/default/todoApp.html (slightly modified, since pyjamas has 
evolved a bit):

<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>

This is loading my pyjamas frontend, but inside an iframe. As a result, my 
CSSs are not loaded.
What I would like is to completely skip the views/default/todoApp.html.
I want to tell my controller (I guess this is the term) to serve my pyjamas 
html directly, not via the view template.
The pyjamas html is located in static/output/Portal.html.

I do not know how to do this. I guess I need a king of "redirect" directive 
for the web2py engine.
But it is important that this does not issue a redirect to the browser. It 
must be a web2py internal thing, which tells the engine that it must serve 
the html in the alternate location, instead of serving the usual view in 
<application>/views/default/<action>.html

Is this at all possible in web2py?

Thanks,
Daniel Gonzalez

-- 



Reply via email to