Arf, I didn't think about this nice nested writng !

BTW this is cool to have stright answers by the creator (and DON'T
call me Igor :)

JY

On 8 nov, 14:12, mdipierro <[EMAIL PROTECTED]> wrote:
> yes you can:
>
> def index():
>      try:
>          db.mytable.insert(myfield='myvalue')
>          db.commit()
>      except: db.rollback()
>      try:
>         db.mytable.insert(myfield='myothervalue')
>         db.commit()
>      except:
>         rollback()
>      return dict()

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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