If you need to use a transaction, you could still do it using web2py:

from google.appengine.ext import db as gaedb

def txn():
    counter = db.counters[cid]
    if counter:
       counter.update_record(count = counter.count+1)
    return counter

counter = gaedb.run_in_transaction(txn)

print counter.count


Robin



On Oct 14, 1:20 pm, mdipierro <[email protected]> wrote:
> GAE has very limited transaction support and they basically allow
> single record transaction only. Web2py does not support transactions
> in GAE
>
> On Oct 14, 10:12 am, Carl <[email protected]> wrote:
>
> > hi,
>
> > is web2py's db rollback() implemented on GAE?
> > and is anyone using it on their projects?
>
> > my project is getting to the multi-write stage and this is a check to
> > see what's around the corner :)
>
> > cheers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to