[web2py] Re: solving '\x00'

2020-07-31 Thread mostwanted
Hey Jim, thats the traceback below: Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. Traceback (most recent call last): File "C:\Users\Maswabi\Desktop\WEB2PY APPLICATIONS\web2py-2.20.4\gluon\restricted.py", line 219, in restricted exec(ccode, environment) File

[web2py] Re: A new and easier way to test your apps

2020-07-31 Thread 'Daniela Festi' via web2py-users
> did you or someone else manage to login anybody with webclient and a > correct email address ? > I managed today. For my testcases, I separated the user registration and the user login and ran into the same problem. The solution was to call client.get() one time before calling the

[web2py] Samesite attribute in cookies

2020-07-31 Thread agent tresdev
I have this warning in the Firefox console: Cookie “session_id_app_name” will be soon rejected because it has the “sameSite” attribute set to “none” or an invalid value, without the “secure” attribute. To know more about the “sameSite“ attribute, read

[web2py] data-tooltip from stupid.css gens exception when placed as an attribute into web2py html tag functions

2020-07-31 Thread Niktesla001
Hello there. In my index.html i was trying to output this text {{=A(SPAN('MyWord', _data-tooltip='Hey, this is the word of mine!'), _href='word')}} and it failed miserably (generated an exception). I was able to fix this by replacing "data-tooltip" with "data_tooltip" in stupid.css and then

[web2py] Re: How to prevent submitting form details that already exist as a record in the database

2020-07-31 Thread Asad Rashid
The more simplest way is to set UNIQUE to the column of the database you want it to stay unique. That way a duplicate record will not be inserted and the insert query will return an error stating "record already exist". Check how to set your required column(s) "unique". This way is the fastest

[web2py] How to send contenteditable to web2py AJAX call

2020-07-31 Thread Rob Paire
Hi All, I am trying to send data entered into the contenteditable feature of a row object using a Web2py AJAX call, and it's not working. The problem is illustrated below in a sample View file with two Ajax calls. The first call, from the manual, uses an input form variable and it works fine.

[web2py] Re: solving '\x00'

2020-07-31 Thread Jim S
Can you post a more complete traceback? On Friday, July 31, 2020 at 11:16:12 AM UTC-5, mostwanted wrote: > > Hi guys, *t*oday I encountered this error*: > '\x00'*, I think it occured during shut down because wheni rebooted my > laptop it was there, in chapter 6 of the book (fixing

[web2py] solving '\x00'

2020-07-31 Thread mostwanted
Hi guys, *t*oday I encountered this error*: '\x00'*, I think it occured during shut down because wheni rebooted my laptop it was there, in chapter 6 of the book (fixing migrations) it says we should add* db.define_table(, migrate=True, fake_migrate=True) *but when I did that the error

[web2py] Re: How do I prevent going back to previous page after user is logged out?

2020-07-31 Thread 'Annet' via web2py-users
What about the following? auth.settings.login_onaccept = lambda form: __on_login() auth.settings.logout_onlogout = lambda user: __on_logout() def __on_login(): # whatever you want to do return None def __on_logout(): # whatever you want to do return None To solve your