appengine python datastore - 模型回滚的钩子(常规db api,而不是ndb)

时间:2012-07-24 15:36:45

标签: python google-app-engine datastore

当事务失败时,我需要挂钩特定模型类型的回滚。 我知道这对于ndb api来说更简单。但是,我现在有太多遗留代码需要迁移。

1 个答案:

答案 0 :(得分:0)

你读过this article about using hooks吗? 我认为你可以检查call =='Rollback'是否在回滚交易时做了一些事情。