I would suggest you include all of the code in this block If you are getting the error then I will trust the python interpreter over your code ;-)
T On May 17, 10:34 am, "astrid.thuec...@googlemail.com" <astrid.thuec...@googlemail.com> wrote: > I encounter a very strange error which wasn't here before and I > already wonder if it is due to some kind of indendation problem. > > Anyway. The transaction accesses variables that were defined in the > sourcecode before the transaction: > > some variables > > def txn(): > if (...): > .... > else: > .... > db.run_in_transaction(txn) > > in the if and else parts it sometimes complains that the variables I > clearly defined before the transaction method were referenced before > they were defined. It is even more confusing since some variables seem > to be working in the if block but not in the else block and vice > versa. > > Any clue what I am missing? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---