can create a new thread on goog-app-engine ..(python)
Posted
by zjm1126
on Stack Overflow
See other posts from Stack Overflow
or by zjm1126
Published on 2010-04-24T01:52:30Z
Indexed on
2010/04/24
1:53 UTC
Read the original article
Hit count: 422
google-app-engine
|thread
i use this code can crteate ,but someone say it can't create ,why ?
class LogText(db.Model):
content = db.StringProperty(multiline=True)
class MyThread(threading.Thread):
def __init__(self,threadname):
threading.Thread.__init__(self, name=threadname)
def run(self,request):
log=LogText()
log.content=request.POST.get('content',None)
log.put()
def Log(request):
thr = MyThread('haha')
thr.run(request)
return HttpResponse('')
© Stack Overflow or respective owner