yeah, i've solved it by simply storing a list (just forgot to came
back and explain it here), thanks! :)
I thought I had to declare it as a 'StringListProperty' (as this is
how I'd have to declare it if it were a static property on a Model or
an Expando), but it looks like storing a simple 'list' straight
forward is fine!

On Aug 11, 2:41 am, Robert Kluin <[email protected]> wrote:
> You don't need to add anything:
>
>   class T(db.Expando):
>     pass
>
>   t = T(key_name='test')
>   t.slp = ['list', 'of', 'strings']
>   t.put()
>
>   t2 = T.get_by_key_name('test')
>   print t2.slp
>
> Robert
>
>
>
>
>
>
>
> On Wed, Aug 10, 2011 at 11:10, roberto.cr <[email protected]> wrote:
> > I'm using the python sdk, but I believe this question belongs to this
> > list.
> > please correct me if I'm wrong.
> > and thanks in advance to whoever helps here, I'm stuck at this right
> > now!
>
> > On Aug 10, 12:00 pm, "roberto.cr" <[email protected]> wrote:
> >> inhttp://code.google.com/appengine/docs/python/datastore/expandoclass.html
> >> we can read:
> >>     "Dynamic properties simply store values of the supported datastore
> >> types. See Types and Property Classes."
> >> I would expect to be able to use any property class available to a
> >> Model.
>
> >> instead, I've come up with the following error:
> >>     "TypeError: Expando cannot accept values of type
> >> 'StringListProperty'."
>
> >> examining python/google/appengine/ext/db/__init__.py we can check what
> >> are the actual supported types:
>
> >>http://www.google.com/codesearch#Qx8E-7HUBTk/trunk/python/google/appe...
>
> >> is this correct?
> >> can't I just add StringListProperty to _ALLOWED_PROPERTY_TYPES ? ;)
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to