[web2py] Re: this not runs . Field('materials', 'list:string','reference malzemeler')

2021-10-05 Thread Massimo Di Pierro
Hello Cassio, the Field constructor takes a name and a type. The type can be "list:reference malzemeler" (assuming you have a table malzemler). Also if you want the value to display something other than the id of a referenced record, you have to specify a record format for the referenced

[web2py] Re: Guidelines for choosing web2py or py4web

2021-10-05 Thread Massimo Di Pierro
I started both projects so I have an opinion on this topic. :-) Use py4web. web2py started in 2007 and it is now 14 years old. We learned a lot from it and py4web was thought of a successor. py4web and web2py share: - the same DAL - the same validators - the same template language (but a

[web2py] Re: Guidelines for choosing web2py or py4web

2021-10-05 Thread Jim S
I am biased, but do yourself a favor and write it with py4web. The execution isn't just a little bit faster, it is orders of magnitude faster. Check out the SouthBreeze sample app I wrote using py4web, bulma and htmx. https://southbreeze.pythonbench.com Documentation for web2py is better,

[web2py] Re: Web2py Scheduler, db query is not executing.

2021-10-05 Thread Jim S
Have you tried adding a db.commit() to your delete_after_hours() function? -Jim On Tuesday, October 5, 2021 at 8:49:44 AM UTC-5 Andrew wrote: > Hello, I am trying to run a database query using the web2py scheduler, but > for some reason I can't get the query to commit. I've tested the

Re: [web2py] Does oauth2.0 work with python3?

2021-10-05 Thread Bhargava Kamath
hi can you send me working code, i am fiddling with similar issue, On Friday, September 24, 2021 at 10:51:09 AM UTC+5:30 muratkas...@gmail.com wrote: > Hi Dragan, > I used this when upgrading. Maybe it helps you: > try: > # For Python 3.0 and later > from urllib.request import urlopen >

[web2py] Guidelines for choosing web2py or py4web

2021-10-05 Thread Daniel Dutra
Today I've discovered that web2py has a child called py4web. Now I'm confused about when to choose any one of these. Documentation says py4web is faster than web2py, but it seemed to me py4web is also more difficult to work with (although I can see that's for a justifiable reason). So, does

[web2py] Re: update_or_insert on an existing record returns None

2021-10-05 Thread Noobie
send code to analyze bro On Friday, September 24, 2021 at 2:48:44 PM UTC+5:30 Ramos wrote: > Why update_or_insert on an existing record returns None ?? > If the record does not exist it returns the created record id but if > updating an existing record i get None. > > Regards > António > --

[web2py] Re: "Invalid email" when requesting password reset

2021-10-05 Thread Tele Tom
Scot et.al.; I believe I am having the same strange problem. I am using web2py version 2.21.1 with python 2.7.5 I found that particular line of code tyou mentioned in web2py/gluon/tools.py about line: 3468 "if not self.settings.email_case_sensitive:

[web2py] Web2py Scheduler, db query is not executing.

2021-10-05 Thread Andrew
Hello, I am trying to run a database query using the web2py scheduler, but for some reason I can't get the query to commit. I've tested the function in a controller to see that it works, and I'm pretty sure the scheduler is running correctly because I have a scheduler_worker with the status of

Re: [web2py] A friend has developed a flask application and now wants to add a login and security. I would like to know if it would be feasible to convert the flask application to web2py.

2021-10-05 Thread 'Walter Okine' via web2py-users
I also agree that py4web would give much better performance. Web2py is easy so i dont think your friend will face much problem converting the application to web2py. I have converted an app I wrote in flask to web2py and was able to do so. The actual conversion i.e. database, html, css was a

Re: [web2py] Does oauth2.0 work with python3?

2021-10-05 Thread Noobie
hi can you send me working code i am tired to set my codes straight On Friday, September 24, 2021 at 10:51:09 AM UTC+5:30 muratkas...@gmail.com wrote: > Hi Dragan, > I used this when upgrading. Maybe it helps you: > try: > # For Python 3.0 and later > from urllib.request import