[web2py] Re: How to flash a message after a callback

2011-09-13 Thread Cliff
That's probably correct. I have not tracked the response codes in Firefly. On Sep 12, 1:49 pm, Anthony wrote: > On Monday, September 12, 2011 1:23:47 PM UTC-4, Cliff wrote: > > > >> If the db update failed in the regular controller I would assume that > > >> a ticket page would appear. But what

[web2py] Re: How to flash a message after a callback

2011-09-12 Thread Anthony
On Monday, September 12, 2011 1:23:47 PM UTC-4, Cliff wrote: > > >> If the db update failed in the regular controller I would assume that > >> a ticket page would appear. But what if the db update is in a callback > >> function? > > > >In that case, an error ticket will still be logged, and web2

[web2py] Re: How to flash a message after a callback

2011-09-12 Thread Cliff
>> If the db update failed in the regular controller I would assume that >> a ticket page would appear. But what if the db update is in a callback >> function? >In that case, an error ticket will still be logged, and web2py will return >the usual 500 error with the link to the ticket. Anthony, I

[web2py] Re: How to flash a message after a callback

2011-09-12 Thread Anthony
On Monday, September 12, 2011 1:00:41 AM UTC-4, Noel Villamor wrote: > > If the db update failed in the regular controller I would assume that > a ticket page would appear. But what if the db update is in a callback > function? > In that case, an error ticket will still be logged, and web2py wil

[web2py] Re: How to flash a message after a callback

2011-09-12 Thread Noel Villamor
Thanks Jan. On Sep 12, 8:47 pm, "jot.be" wrote: > Hi, > > > > > > > > > > On Mon, Sep 12, 2011 at 4:57 AM, Noel Villamor wrote: > > I have a button which does the following callback: > > > ajax('{{=URL('callback')}}',['btn1'],':eval');" > > > Then I have the following callback function in my co

[web2py] Re: How to flash a message after a callback

2011-09-11 Thread Noel Villamor
Book states: Code in models, views and controllers is enclosed in web2py code that looks like this: try: execute models, controller function and view except: rollback all connections log the traceback send a ticket to the visitor else: commit all connections save coo

[web2py] Re: How to flash a message after a callback

2011-09-11 Thread Noel Villamor
Thank you guys!

[web2py] Re: How to flash a message after a callback

2011-09-11 Thread Anthony
On Sunday, September 11, 2011 10:57:27 PM UTC-4, Noel Villamor wrote: > > I have a button which does the following callback: > > ajax('{{=URL('callback')}}',['btn1'],':eval');" > > Then I have the following callback function in my controller: > > def callback(): > db(db.tbl.id==100).updat