hi ryan

is there any limit to the number of "kinds" you can dynamically
create? is there a way to create dynamic indexes for these kinds as
well?

thx
brian

On Oct 25, 2:49 am, yejun <[EMAIL PROTECTED]> wrote:
> Actually, you still need to supply a empty dict object
> anykind = type("KindName", (db.Expando,), dict())
>
> obj1 = anykind()
> obj1.put()
>
> Here "anykind" is just a variable name, it is not necessary to match
> KindName, but KindName is the name used for datastore.
>
> On Oct 25, 3:36 am, Koren <[EMAIL PROTECTED]> wrote:
>
> > Thanks!
> > so can i do soemthing like:
> > Newkind = type("KindName", (db.expando,))
>
> > obj1 = KindName()
>
> > ?
>
> > On Oct 25, 12:14 am, yejun <[EMAIL PROTECTED]> wrote:
>
> > > I think you mean kind.
>
> > > Newkind = type("KindName", (db.model,), dict(p1=db.Property(), p2...))
>
> > > On Oct 24, 5:45 pm,Koren<[EMAIL PROTECTED]> wrote:
>
> > > > hi,
>
> > > > is it possible to create a datastore entity atruntime?
> > > > i have the situation that i need to create new Entities (and not
> > > > records) duringruntime. This corresponds to setting up a database
> > > > table duringruntimeinstead of just adding rows to the same table.
>
> > > > thanks,
>
> > > >Koren- Hide quoted text -
>
> > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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