You may want to use an expando as described here http://code.google.com/appengine/docs/python/datastore/expandoclass.html
On Jul 29, 5:03 am, Juguang XIAO <jugu...@gmail.com> wrote: > Hello. > > In datastore, I want to create a misc "table" to store dynamic properties > which is not in the defined model. For example > > class Account_base(db.Model): > account_id = db.StringProperty() > password = db.StringProperty() > > class Account_extension(db.Model): > base_key = db.StringProperty() # refer to base's key > prop_name = db.StringProperty() # property name > prop_value = db.StringProperty() # property value - this is where I want > to want make it dymanic typed, often TextProperty or IntegerProperty!! > > What should I define the type of Account_extension.prop_value, so that I can > possibly assign it any type of values? > > Many thanks. > > Juguang > > -- > ============= > Juguang XIAO > Beijing, China --~--~---------~--~----~------------~-------~--~----~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---