例如:
def baz(self, id):
return SomeModel.get_by_id(id)
def boo(self, bar):
# Do something to bar
bar.put()
@ndb.transactional()
def foo(self, id):
bar = self.baz(id)
self.boo(bar)
foo
安全事务的调用吗?如果不是,为什么不呢?