Try use db.Expando instead of db.Model, that'll all you to add fields
without defining them first.
On Mar 4, 9:45 pm, li jinyu disorder...@gmail.com wrote:
2009/3/4 Doug doug...@gmail.com
I am also pretty green with GAE, but I think that the db Model Event
and the db model event are 2
Are you doing an event.put() to save each event?
On Wed, Mar 4, 2009 at 1:32 PM, disorderdev disorder...@gmail.com wrote:
Hi, I'm a newbie here, both python and app engine. a few questions:
I store some fields in DB, but when show message on Web, I need more
fields, most of them are
I am also pretty green with GAE, but I think that the db Model Event
and the db model event are 2 different db models.
If they are 2 different models this would be why you are always
getting none when you read from it. You would be able to see if you
have 2 in the console.
BTW - What is None?
Yes, of course, I did. the other message, like owner, title, content, are
shown, but status and color are still None.
2009/3/4 Ian Lewis ianmle...@gmail.com
Are you doing an event.put() to save each event?
On Wed, Mar 4, 2009 at 1:32 PM, disorderdev disorder...@gmail.com wrote:
Hi, I'm a
If you want to have a persistent class that you can add arbitrary
vales to, try db.Expando. It will let you do:
class Event(db.Model) :
owner = db.UserProperty()
title = db.StringProperty()
content = db.StringProperty(multiline = True)
e = Event()
e.color = Green
2009/3/4 Doug doug...@gmail.com
I am also pretty green with GAE, but I think that the db Model Event
and the db model event are 2 different db models.
If they are 2 different models this would be why you are always
getting none when you read from it. You would be able to see if you
have