Here is my model:
class NoteModel(db.Model):
title = db.StringProperty(multiline=False)
content = db.ListProperty(type('string'))
And the values are:
title:'Foo'
content: ['bar']
And the result of:
class getANote(webapp.RequestHandler):
def get(self):
query=Models.NoteModel.a
So I tried a more direct approach to this problem:
function stateChanged()
{
if (xmlHttp.readyState==4)
{
if (xmlHttp.responseXML==null)alert("Null");
var xmlDoc=xmlHttp.responseXML.documentElement;
document.getElementById("companyname").innerHTML=
xmlDoc.getElementsByTagName("compname")[0].child
You could use Live HTTP Headers in Firefox (for instance) to make sure
that the browser is getting valid data.
Maybe you need to set the content-type of the response to 'text/xml'
for the browser to initialize responseXML:
self.response.headers['Content-Type'] = 'text/xml'
On Mar 23, 11:10 am,
Yes, I needed to set the headers. Thanks!
However I still don't know what should I do to convert the exit of to_xml()
from the model class into something useful. Any ideas?
On Tue, Mar 24, 2009 at 10:41 AM, Gijsbert wrote:
>
> You could use Live HTTP Headers in Firefox (for instance) to make sure
Ok it does returns a string, magically everything is fine now thanks for all
the help!
On Mon, Apr 13, 2009 at 4:49 PM, Marcelo de Sena Lacerda <
marceloslace...@gmail.com> wrote:
> Yes, I needed to set the headers. Thanks!
> However I still don't know what should I do to convert the exit of to_x