[google-appengine] Re: XML file not rendered correctly when live

2008-09-26 Thread abowman

It wouldn't display anything.  I had to view the source to see the
output.

Serving it as a static file fixed the problem.

Thanks


On Sep 26, 5:11 pm, Anthony <[EMAIL PROTECTED]> wrote:
> Seems strange that it would be removed.. are you viewing the output in
> the FF xml view? Try a view source.
>
> Anyhow have you tried serving it as a static file...
>
> e.g.
>
> - url: /crossdomain.xml
>   static_files: static/crossdomain.xml
>   upload: static/crossdomain.xml
>
> On Sep 26, 8:15 pm, abowman <[EMAIL PROTECTED]> wrote:
>
> > I have a simple xml file that outputs the following when it is run
> > locally:
>
> > 
> > 
> > 
> > 
> > 
>
> > When it is live, the first line is removed:
>
> > 
> > 
> > 
> > 
>
> > What can I do to get this to render properly?  Is there someway I
> > should be setting the content type of the file?
>
> > This is the code for crossdomain.py:
>
> > str = """
> > 
> > 
> > 
> > """
>
> > print str
>
> > and I've entered this to app.yaml
>
> > - url: /crossdomain.xml
> >   script: crossdomain.py
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] XML file not rendered correctly when live

2008-09-26 Thread abowman

I have a simple xml file that outputs the following when it is run
locally:







When it is live, the first line is removed:






What can I do to get this to render properly?  Is there someway I
should be setting the content type of the file?

This is the code for crossdomain.py:

str = """



"""

print str

and I've entered this to app.yaml

- url: /crossdomain.xml
  script: crossdomain.py

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---