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:.
>>
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
>
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
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
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:
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
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
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
> 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
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
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
11 matches
Mail list logo