[google-appengine] Re: What does Model.to_xml() returns?

2009-03-23 Thread Marcelo Sena
''') The xml is said well formatted using w3c validator. Now what I'm doing wrong, is this a app engine error? Help please! On Mar 20, 9:53 pm, Marcelo Sena marceloslace...@gmail.com wrote: Here is my model: class NoteModel(db.Model):     title = db.StringProperty(multiline=False)     content

[google-appengine] What does Model.to_xml() returns?

2009-03-20 Thread Marcelo Sena
I know what the docs say, but what kind of xml is that, is a string or a object and what is the type of that object? I tried using type() on it and it returned nothing. I need to turn my model into a XML to use it in a javascript. Regards, Marcelo Sena

[google-appengine] Re: Problem when storing a integer into a model(GQL)

2009-03-15 Thread Marcelo Sena
On Mar 15, 1:55 pm, Marcelo Sena marceloslace...@gmail.com wrote: Here is the model I'm trying to update: class ManifestVersion(db.Model):     versionNumber = db.IntegerProperty() Here is the method that should change the only instance of the previous model: def incrementVersion

[google-appengine] Re: Problem when storing a integer into a model(GQL)

2009-03-15 Thread Marcelo Sena
for the suggestion. On Mar 15, 9:33 am, Marcelo Sena marceloslace...@gmail.com wrote: I found something interesting. If i don't try to commit the versionNumber, its value is set to 1. Could it be something wrong with in my model? On Mar 15, 8:03 am, Tim Hoffman zutes...@gmail.com wrote: Here's

[google-appengine] Problem when storing a integer into a model(GQL)

2009-03-14 Thread Marcelo Sena
Here is the model I'm trying to update: class ManifestVersion(db.Model): versionNumber = db.IntegerProperty() Here is the method that should change the only instance of the previous model: def incrementVersion(): versionList = ManifestVersion.all() num =

[google-appengine] Getting __title__ is not defined error

2009-03-09 Thread Marcelo Sena
Hi, I'm getting the following error message when trying to run my application: 1 if __title__ == __main__: 2 main() __title__ undefined type 'exceptions.NameError': name '__title__' is not defined args = (name '__title__' is not defined,) message = name '__title__' is not