Revision: 10174
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 11, 2008 03:23 by tamuratetsuya
Initial Code
class MyModel1(db.Model): text = db.StringProperty() anotherModelInfo = db.NumberProperty() class MyModel2(db.Model): ref = db.ReferenceProperty(MyModel1) class Controller(webapp.RequestHandler): def post(self): datas = [] ... # MyModelã®listã§ã‚ã‚‹datasを作æˆã€‚ db.run_in_transaction(self.insert, datas) def insert(datas): for data in datas: data.put()
Initial URL
Initial Description
Initial Title
Transactionã«ã¤ã„ã¦
Initial Tags
google, python, django
Initial Language
Python