Thanks!

On Dec 27, 5:20 pm, yejun <[email protected]> wrote:
> NewTest=type('NewTest',(Test,),{})
>
> On Dec 27, 11:43 am, Anthony <[email protected]> wrote:
>
> > Hi, Is it possible to store a model as a different name to the class
> > name?
>
> > I thought this would work but its still stored as a "Test"...
>
> > class Test(db.Expando):
> >         test = db.StringProperty()
>
> > class MainHandler(webapp.RequestHandler):
> >         def get(self):
> >                 NewTest = Test
> >                 nt = NewTest(test="hello")
> >                 nt.put()
--~--~---------~--~----~------------~-------~--~----~
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