Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2008-06-13 19:35:45

cryptoj
New member
Registered: 2008-06-10
Posts: 3

Newbies html example and Google Application Engine

I've tried every permutation I can imagine trying to get this to work. I have a simple python program which includes the Newbie html code. The the python program is in the web application root directory and tried all possible paths to XinhaLoader and XinhaConfig. I get the text box bo no editor. From the error console, there are no errors or any other messages. It behaves the same on both Firefox and IE.  I even thought of placing the python program in the examples directory (thinking there might be some dependancies) - but it acts like all the python stuff must run from the web root. Any ideas will be appreciated. 

thanks, james


                    I----<Web App root| directory>
                    I-----compose.py
                    I--------<Xinha>
                    I---------XinhaLoader.js
                    I---------<examples>
                    I--------------XinhaConfig.js
                    I--------------Newbie.html (placed in compose.py with the paths for Xinha, XinhaLoader, and XinhaConfig changed)


    self.response.out.write('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">')
    self.response.out.write('<head> <script type="text/javascript">')
    self.response.out.write('_editor_url  = "/Xinha/"        // (preferably absolute) URL (including trailing slash) where Xinha is installed')
    self.response.out.write('_editor_lang = "en";            // And the language we need to use in the editor.')
    self.response.out.write('_editor_skin = "silva";         // If you want use skin, add the name here')
    self.response.out.write('</script>')
    self.response.out.write('<script type="text/javascript" src="/Xinha/XinhaLoader.js"></script><script type="text/javascript" src="/Xinha/examples/XinhaConfig.js"></script>')
    self.response.out.write('</head><body>')
    self.response.out.write('<form action=""><div><textarea id="myTextArea" name="myTextArea" rows="25" cols="50" style="width: 100%"></textarea>')
    self.response.out.write('/div></form></body></html>')



   
# branch off to submit composed and back
    self.response.out.write('<form name="myTextArea" action="/" method="get">')
    self.response.out.write('<input name="compose" type="submit" </form>')
    self.response.out.write('</pre></body></html>')

Offline

#2 2008-06-15 01:59:57

cryptoj
New member
Registered: 2008-06-10
Posts: 3

Re: Newbies html example and Google Application Engine

turns out this works as posted - the app.yaml file was pointing to the wrong directories.

james

Offline

Board footer

Powered by FluxBB