[web2py] How can I update the record in one table with value entry of another table as soon as the value is entered?

2019-09-04 Thread mostwanted
I have a website where I am selling items, what I desperately want to achieve is to be able to show the buyers the remaining number of each item. I have 2 tables, the table that has all the items being sold & has a field amount which is the current number of items in stock and the other

Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2019-09-04 Thread Saranya S
Hi, I'm getting the same problem. User getting logged out after successful transaction. it's working fine in local host but when deployed to pythonanywhere server, I'm getting this issue. Also tried downdrading web2py version 2.17.1, still no luck... Did you find solution for this

Re: [web2py] Re: Question with saving the thumbnail name on linux disk

2019-09-04 Thread Dave S
On Wednesday, September 4, 2019 at 11:09:06 AM UTC-7, Rahul wrote: > > Hi Dave, > >Sorry for the delay - I got busy but - Thanks for pushing me I > worked on it today and now it is finally *RESOLVED!! Yay!! * > > There were two errors - > > 1] (cannot open resource) > 2]

Re: [web2py] Re: Question with saving the thumbnail name on linux disk

2019-09-04 Thread Rahul
Hi Dave, Sorry for the delay - I got busy but - Thanks for pushing me I worked on it today and now it is finally *RESOLVED!! Yay!! * There were two errors - 1] (cannot open resource) 2] NameError: global name 'watermark_font' is not defined These were because the system could not

[web2py] Re: Help understanding memory use and selects

2019-09-04 Thread Ian W. Scott
In case someone is looking for answers to my numbered questions, it seems from what I can tell that: 1. Memory used performing a select isn't released for quite a while afterwards, even if your code doesn't use that data again. So multiple selects will quickly make your memory usage

[web2py] Re: Help understanding memory use and selects

2019-09-04 Thread Ian W. Scott
After some experimenting and refactoring, I'll offer some preliminary answers to my own question here. First, I was able to refactor that list comprehension so that it uses negligible memory (too low for memory_profiler to register). The original version looked like this and consumed over 1MiB

[web2py] Re: Help understanding memory use and selects

2019-09-04 Thread Ian W. Scott
Thanks Dave. That was helpful. On Tuesday, September 3, 2019 at 3:29:02 AM UTC-4, Dave S wrote: > > > > On Monday, September 2, 2019 at 12:44:18 PM UTC-7, Ian W. Scott wrote: >> >> I'm trying to lower the memory use of an app and have some general >> questions about how memory is used in DAL

Re: [web2py] Speed

2019-09-04 Thread António Ramos
The information is already in the browser. All members are loaded at page load. The page loads data from this url https://www.fluidpowernet.net/Ws/getmlf regards Em qua, 4 de set de 2019 às 15:07, Gaël Princivalle < gaelprinciva...@gmail.com> escreveu: > Well when you search for the members

[web2py] VSCODE with linter + debugging in WEB2PY

2019-09-04 Thread Monir
Hi All, I'm new on Python and also on Web2py. I've been searching some sort of info or step by step about how to config web2py in VS CODE to Debug, Lint, Intelisense, etc... would be nice! But unfortunately, all resources I have found so far seems to be deprecated. Even here in the group, this

Re: [web2py] Speed

2019-09-04 Thread Gaël Princivalle
Well when you search for the members from the different countries the content is loaded certainly dynamically and it's done in a short time. If you take a look to the browser web console times are always under 700 ms... Il giorno mercoledì 4 settembre 2019 15:34:31 UTC+2, Ramos ha scritto: > >

Re: [web2py] Speed

2019-09-04 Thread António Ramos
Let me disagree. Not that "incredible" just static pages with litle content You dont neet a framework to do that... Em qua, 4 de set de 2019 às 13:24, Gaël Princivalle < gaelprinciva...@gmail.com> escreveu: > Hello. > > The user experience on this website is amazing, mostly due to the >

[web2py] Re: mongoengine.org: can this work with web2py?

2019-09-04 Thread Michele Serra
Hi Massimo, thanks a lot for the answer could you tell me how much it takes to use py4web in production? Il giorno mercoledì 4 settembre 2019 05:58:39 UTC+2, Massimo Di Pierro ha scritto: > > yes it would work but since you would not benefit from automatic web2py > forms and grid, I'd recommend

[web2py] Speed

2019-09-04 Thread Gaël Princivalle
Hello. The user experience on this website is amazing, mostly due to the incredible speed: https://www.fluidpowernet.net/ Hosting Azure Framework ASP.NET As I have to think about new projects where I can choose the technologies, I would like to understand why this website is so fast. Hosting?

[web2py] Re: How can I run a command once at launch?

2019-09-04 Thread 'Francis Windram' via web2py-users
Wonderful, thanks Dave! This is probably the correct approach for me to take. And that is a fair point, I think for the most part I organised it like that to prevent drift (though I do know of the preventdrift argument to schedule_task()) and ensure that the task always queued for 2200 the