[web2py] Re: Form input for date does not start the calendar date picker

2020-08-02 Thread Jim S
What is the output you're hoping for? It seems to me like you want to use SQLFORM.factory, you can read about it here: http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-factory If that isn't what you want, can you post a sample table that you are trying to create?

[web2py] Form input for date does not start the calendar date picker

2020-08-02 Thread Vlad
Ok so I have this *non-SQLFORM* form form = FORM(TABLE(TR(XML('Please enter/select below'),XML('')), TR(XML('Created'),INPUT(_name='skillcreated', _value=skillsdict['created']), _type="text", ), TR(XML(''),XML('')), TR(INPUT(_type='submit',_value="SUBMIT"),XML('' I have tried

[web2py] Machine learning in web2py

2020-08-02 Thread mostwanted
Has anyone applied some machine learning to their web2py projects? I wanna apply some recommendations capabilities to my app but i dont know how its gonna work out, if there are any example projects I'd appreciate the direction. Regards; Mostwanted -- Resources: - http://web2py.com -

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

2020-08-02 Thread Warwick JC
Hi Thanks for this. I put these functions in the model.py, I hope its correct. def __on_login(): redirect(URL('index')) return None def __on_logout(): redirect(URL('index')) return None On Fri, 31 Jul 2020 at 11:49, 'Annet' via web2py-users < web2py@googlegroups.com> wrote: >

[web2py] Using the T function

2020-08-02 Thread Kenneth
Hello, I have been using the T function on many apps and working great. Now I installed a new server och installed newest web2py (2.20.4) and Python 2.7.17. If I use the {{T('asdasd')}} in a view I can get the languages files to include the new string, so I can't translate the app. I

[web2py] Re: solving '\x00'

2020-08-02 Thread mostwanted
Thank you Jim, so much On Saturday, August 1, 2020 at 5:08:22 PM UTC+2, Jim S wrote: > > I am definitely not an expert on this, but it looks to me like you have > some data in one of your tables that python cannot pickle. I'm guessing > you have some unicode characters that snuck into your db.