NewTest=type('NewTest',(Test,),{})
On Dec 27, 11:43 am, Anthony <acorc...@gmail.com> 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 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
-~----------~----~----~----~------~----~------~--~---