Re: [web2py] Re: An error occured, please reload the page

2016-08-23 Thread Anthony
Also, what version of web2py are you using, and on what platform/browser? On Tuesday, August 23, 2016 at 8:24:37 AM UTC-4, Anthony wrote: > > On Tuesday, August 23, 2016 at 1:12:38 AM UTC-4, mweissen wrote: >> >> Anthony, >> >> maybe I did not find the right words to describe the situation:. >>

Re: [web2py] Re: An error occured, please reload the page

2016-08-23 Thread Anthony
On Tuesday, August 23, 2016 at 1:12:38 AM UTC-4, mweissen wrote: > > Anthony, > > maybe I did not find the right words to describe the situation:. > >1. While the error message is visible, I *can *edit the page. >2. The "save"-button is not disabled, but it does nothing. No changes >

Re: [web2py] Re: An error occured, please reload the page

2016-08-22 Thread Martin Weissenboeck
Anthony, maybe I did not find the right words to describe the situation:. 1. While the error message is visible, I *can *edit the page. 2. The "save"-button is not disabled, but it does nothing. No changes are stored. 3. It is clear, that I have to dismiss the message. 4. Again

Re: [web2py] Re: An error occured, please reload the page

2016-08-22 Thread Anthony
OK, I see. At the bottom of the editor page there is a "Hooks" link which reveals a hidden Ajax component when clicked (it shows any _before/_after database callbacks attached to the DAL table models). That Ajax component actually calls the hooks() action in the appadmin.py controller of the

Re: [web2py] Re: An error occured, please reload the page

2016-08-22 Thread Martin Weissenboeck
Hi Anthony! No, the error is within the app. Please try it: (1) Create a new app (2) Add this line to db.py: db.define_table("mytable", Field("message")) (3) Wait some seconds. The message "An error occured, please reload the page" appears. (4) The error message in the error file is:

[web2py] Re: An error occured, please reload the page

2016-08-22 Thread Anthony
If you are receiving an error while in the admin app, then the error is within the admin app itself, not your own app code. To see what the error is, visit the errors page for the admin app itself. You can also open the browser developer tools to examine the specific Ajax request and response

[web2py] Re: An error occured, please reload the page

2016-08-22 Thread mweissen
What I have done: db.define_tabel("mytable", Field("message")) "message" is not allowed as name for a field and I get "An error occured, please reload the page" Now I reload db.py and I want to change "message" to "mymessage". But I cann't: the error message appears faster than I could edit

[web2py] Re: An error occured, please reload the page

2015-09-05 Thread Annet
Hi Anthony, Anyway, this message should probably be optional or configurable -- maybe >> submit a github issue requesting that. >> > The message "An error occured, please reload the page" is a bit confusing, clicking reload the page doesn't resolve the error. When I go to

[web2py] Re: An error occured, please reload the page

2015-09-05 Thread Anthony
> When I go to http://127.0.0.1:8000/admin/default/errors/app there's an > error log related to the message. When I resolve > the error the message no longer appears. > > Does this imply that web2py constantly scans my application for errors, > and detects them before I run any code. > The

[web2py] Re: An error occured, please reload the page

2015-07-19 Thread Anthony
That is handled here https://github.com/web2py/web2py/blob/master/applications/welcome/static/js/web2py.js#L240in web2py.js (the error message itself is set in web2py_ajax.html https://github.com/web2py/web2py/blob/master/applications/welcome/views/web2py_ajax.html#L7, though web2py.js does

[web2py] Re: An error occured, please reload the page

2015-07-19 Thread Anthony
Another hack is to do: script ajax_error_500 = undefined; /script That will cause the code in web2py.js to fail, which will prevent the flash message from appearing. Anthony On Sunday, July 19, 2015 at 9:10:56 AM UTC-4, Anthony wrote: That is handled here