Some things cannot be done in the transaction block...like queries :)
On May 17, 1:07 pm, Tim Hoffman <[email protected]> wrote:
> 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, "[email protected]"
>
> <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---