You can't do *dbObjData[key] = ndb.TextProperty(data[key])*
It doesn't work that way.
You can only assign values to instance of properties, not at instantiation.
You should probably explain what you are trying to do.
I can probably guess, but won't bother. However I think there are other
ways of achieving what you want
but you need to elaborate on what you are trying to achieve.
T
On Tuesday, November 26, 2013 5:46:22 PM UTC+8, Vijay Kumbhani wrote:
>
> hello,
>
> i am used large content file ( File Size : 4 kb)
>
> i store file data in NDB Datastore
>
> *code :*
>
>
> *kindOfEntity = tableName*
>
> * class DynamicEntity(ndb.Expando):*
> * @classmethod*
> * def _get_kind(cls):*
> * return kindOfEntity*
>
> * dbObjects = DynamicEntity()*
> * dbObjData = {}*
>
>
> *dbObjData ={}*
>
> *dbObjData[key] = ndb.TextProperty(data[key])*
>
> *dbObjects._set_attributes(dbObjData)*
> *dbObjects.put()*
>
>
> above code get error at dbObjData[key] = ndb.TextProperty(data[key])
>
>
> *how we can assign text properies at runtime in NDB ? *
>
> *pls help *
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.