PiRSquared17 / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

run_in_transaction_custom_retries don't work In 1.1RC #249

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to use run_in_transaction_custom_retries  
2. Voila! 'local' object has no attribute 'notify'
common\appenginepatch\appenginepatcher\transactions.py in commit

58. def commit():
59.    local.in_transaction = False
60.    for action, sender, kwds in local.notify: 

If u look in transactions.py, u'll see that redefined function 
run_in_transaction have code for handling this exceptional situation:

            if not getattr(local, 'in_transaction', False):
                local.in_transaction = True
                local.notify = []

We need the same for run_in_transaction_custom_retries

Original issue reported on code.google.com by denya....@gmail.com on 15 Dec 2009 at 9:20