Hi Jugang,

That's correct. If you don't need the fields to be indexed, though, you can
wrap your strings in db.Text instances, which have no size limitation (other
than the limit of 1MB for the whole entity).

-Nick Johnson

On Thu, Jul 30, 2009 at 11:04 AM, Juguang XIAO <jugu...@gmail.com> wrote:

> Thank you guys.. expando is what i am looking for. String has its
> limitation on 500 bytes in length, right?
>
>
>
>
> On Wed, Jul 29, 2009 at 8:41 PM, Daniel Rhoden <drho...@gmail.com> wrote:
>
>>
>> A String can go a long way as well.  Hopefully your property table has
>> some sane restrictions as to what can go in it.
>>
>> On Jul 29, 2009, at 3:00 AM, Tobias wrote:
>>
>> >
>> > 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
>> > >
>>
>>
>>
>> --
>> =============
>> Juguang XIAO
>> Beijing, China
>>
>>
>> >>
>>


-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to