Re: [web2py] Re: Web2py binaries

2019-04-19 Thread Nico Zanferrari
Thanks for testing, Dave, I'm happy to hear that it's working fine! I think that the Welcome app with latest web2py versions don't look so fine in Windows and python 3, but I cannot see any difference from running it from sources. Let me know if I'm wrong or there are anything else. Nico Il gior

[web2py] SQLFORM.smartgrid selectable return string or list

2019-04-19 Thread icodk
SQLFORM.smartgrid selectable return string if only one checkbox was slected and returns a list if 2 or more was selected. This inconsitancy force me to check for type before processing can continue For example, If I have a button that update selected records in the database call a function that

Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
As almost everything in our world ORMs has advantages and disadvantages. The main criticism about ORMs is that they are leaky abstractions, that means they leaks details that it is supposed to abstract away, because there are times when you just need to use, for example, SQL directly or work wi

Re: [web2py] Re: Web3py

2019-04-19 Thread José Luis Redrejo
I think one of the reasons web2py is so productive and has an easy learn curve is due to the fact of using DAL instead of an ORM. I don't see any problem in using sqlalchemy with web2py if an ORM is needed. I would probably use it in some big projects for some of the models. But for the sake of t

[web2py] Re: SQLFORM.smartgrid selectable return string or list

2019-04-19 Thread Anthony
It should be request.vars.records, not request.vars.id. Note, request.vars is processed by the core framework, not by SQLFORM.smartgrid, so it will be a single value if the browser sends only one "records" field in the form data and a list otherwise. The core code that populates request.vars ha

Re: [web2py] Re: Web3py

2019-04-19 Thread Anthony
On Friday, April 19, 2019 at 10:54:11 AM UTC-4, Carlos Cesar Caballero wrote: > > As almost everything in our world ORMs has advantages and disadvantages. > The main criticism about ORMs is that they are leaky abstractions, that > means they leaks details that it is supposed to abstract away, be

Re: [web2py] Re: Web3py

2019-04-19 Thread Anthony
On Thursday, April 18, 2019 at 6:48:09 PM UTC-4, Carlos Cesar Caballero wrote: > > Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm. I > think including something like this with pydal will be a really good > improvement. > My only concern is whether the benefits are worth having

Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
Yes, but that's not about the number of code lines, that's about the code organization and readability. Greetings. El 19/4/19 a las 4:17 p.m., Anthony escribió: In the case of the weppy ORM in particular, though, I think it really is just alternative syntax for everything that can already be d

Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
Well, that's a really fair concern, I was just mentioning, because I like ORMs and other popular projects like SQLAlchemy includes a DAL (they call it SQL abstraction toolkit) and an ORM on top of it, and if you look at popular web development full stack frameworks, almost all of them are relay