[web2py] Re: Grid search collects all records from all fields on each request. Isn't this bad for performance?

2019-04-30 Thread jcrmatos
Ok, thanks Anthony. terça-feira, 30 de Abril de 2019 às 00:34:10 UTC+1, Anthony escreveu: > > On Monday, April 29, 2019 at 6:22:26 PM UTC-4, jcrm...@gmail.com > wrote: >> >> Grid search collects all records from all fields on each request. Isn't >> this bad for performance? >> > > Are you refer

Re: [web2py] pyDAL -> jsDAL?

2019-04-30 Thread António Ramos
I think you are talking about something like this http://docs.deployd.com/docs/collections/accessing-collections.html I like the idea :) Em ter, 30 de abr de 2019 às 01:47, Scott Hunter escreveu: > > The direction from web2py to web3py seems to be applications where the > server is responsible f

[web2py] Re: Grid search and clear buttons don't restore request.args. Where can I correct that?

2019-04-30 Thread jcrmatos
I have a master page (in this case an equipment's grid) where I have links to child tables. The URL for the equipment's page is http: //jmatos-p:8000/equipment?search=1&sid=d4b3d39a-b6bc-4c41-af05-d2e9bf7ea195 In this page the search and clear search buttons work fine and show the correct URLs,

[web2py] Re: Grid search and clear buttons don't restore request.args. Where can I correct that?

2019-04-30 Thread jcrmatos
Just noticed now that both search and clear search buttons URLs also remove the search=1 var, but maintain the sid var. Strange isn't it? terça-feira, 30 de Abril de 2019 às 00:37:24 UTC+1, Anthony escreveu: > > What do you mean by master-child pages? Are you using smartgrid? Can you > show som

[web2py] Re: pyDAL -> jsDAL?

2019-04-30 Thread Anthony
There is no SQLite in the browser, unless you are talking about something like https://github.com/kripken/sql.js, though that is very heavy and is in-memory only. There are a number of packages that provide an abstraction over IndexedDB, such as Dexie.js, AlaSQL, Nano-SQL, Lovefield, etc. Maybe

[web2py] Re: pyDAL -> jsDAL?

2019-04-30 Thread villas
Hi Scott It's probably unrealistic to imagine that a proper DB would be stored locally. I mean, where would its contents come from? If the answer is a remote DB, then you are already back at square one. However, it still makes sense to cache data on the client side. When the cache gets large

[web2py] Re: Add recoCrud form into modal

2019-04-30 Thread villas
It looks like you're starting at the beginning and using modals can be a headache. On a general note, I believe we can best make progress using small steps, so I recommend... - Start by creating a form in your controller. - Display the form in your view inside a hidden div. - Then

Re: [web2py] Re: pyDAL -> jsDAL?

2019-04-30 Thread António Ramos
If vuejs is the way to go (thank you massimo for the choice...) i think it should evolve also to vuex for client store and use something like this for persistence. https://flaviocopes.com/vuex-persist-localstorage/ I think we can kill 2 rabbits with just one bullet... Em ter, 30 de abr de 2019 às

Re: [web2py] bye bye T, welcome pluralize

2019-04-30 Thread Carlos Costa
Looks nice! What would be the best approach to translate phrases and longer texts? Em seg, 29 de abr de 2019 às 10:59, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub.cu> escreveu: > It looks good!! I can work to support categories if you think it worth it. > Allow something like T(

Re: [web2py] Web2py Windows edition with 3.x Interpreter

2019-04-30 Thread Nico Zanferrari
Hi rama, I've read that pip was not working with the binary package, but I've never actually tried it ;-) I'm happy to hear that it works fine - and that it has resolved your problem with the pandas module (at least on PY3). I'll test this a bit, and update my HOWTO page! About pynsist, it seems

[web2py] Re: Future of web2py

2019-04-30 Thread Gabor Nyul
We are talking for about 2 years now about a possible web3py and other possible addons to it. What do you think, when we can get the first insight of it? If at all... -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - http

[web2py] Re: Grid search and clear buttons don't restore request.args. Where can I correct that?

2019-04-30 Thread jcrmatos
Found the solution. I have to add args=request.args[:1], to the child grid. terça-feira, 30 de Abril de 2019 às 00:37:24 UTC+1, Anthony escreveu: > > What do you mean by master-child pages? Are you using smartgrid? Can you > show some code? > > On Monday, April 29, 2019 at 6:15:30 PM UTC-4, jcrm

[web2py] Strange AttributeError on grid edit

2019-04-30 Thread jcrmatos
Hello, I have this grid: grid = SQLFORM.grid( query, create=create, csv=False, deletable=deletable, details=False, editable=editable, # Disable delete checkbox in edit form. editargs=dict(deletable=False), field_id=db.equi

[web2py] Re: Future of web2py

2019-04-30 Thread villas
Check this out: https://github.com/web2py/web3py Search this current group for recent posts on 'web3py'. Regards, D On Tuesday, 30 April 2019 18:35:04 UTC+1, Gabor Nyul wrote: > > We are talking for about 2 years now about a possible web3py and other > possible addons to it. > What do you th

[web2py] Re: Web3py

2019-04-30 Thread 黄祥
tested web3py/test return an error, detail error and step below: docker pull ubuntu docker run -it --privileged ubuntu /bin/bash apt update apt install -y git python3-pip cd git clone https://github.com/web2py/web3py cd web3py pip3 install -r requirements.txt pip3 install mechanize cd web3py/tests