[web2py] Re: requires IS_IN_DB multiple and zero

2019-05-24 Thread 'jim kaubisch' via web2py-users
old posting, but have a related question - In a form dropdown, certainly multiple but probably under some circumstances single, how do I un-select a previous choice without choosing an alternative? Simple example is - currently I have chosen 3 elements of the list, a, b, c and now want to unse

[web2py] Re: subprocess.Popen then release

2019-05-24 Thread lucas
yeah, I thought of doing it as a scheduled task, but its really best to be triggered by a web2py event and then collect data off of an a2d convertor and populate a db with pure data. so that's why it isn't a true daemon, but I might go in that direction and just have crond trigger it. -- Reso

[web2py] Re: GAE Task Queue no longer passes payload to web2py function

2019-05-24 Thread Carl Hunter Roach
Thanks for responding dps. Having found the issue arrive with the R-2.15.0b2 release I did try the latest 2.18x line. But that too was broken so I went back to R-2.14.6 But then last week the issue started to occur (I hadn’t pushed any code so this change is hard to explain, to say the least).

Re: [web2py] Re: Scheduler is Not Running

2019-05-24 Thread Dave S
On Friday, May 24, 2019 at 1:39:52 PM UTC-7, Suhas Jadhav wrote: > > HI Dave, > > How do I make hcstar as a task. What is wrong in my code? > > Thanks, > Suhas > > The LOAD() helper is meant to be used in a view. It isn't a useful tool in a task. A task has no client, and no user interface.

[web2py] Re: subprocess.Popen then release

2019-05-24 Thread Dave S
On Friday, May 24, 2019 at 11:13:22 AM UTC-7, lucas wrote: > > hello one and all, > > ok, using python 2.7 and web2py 2.18.5 on centos or raspbian linux. is > there a way to start a python script file, a file that runs python all on > its own from the command line interface, and start or spawn

[web2py] Re: A little suggestion: Create a forum for web3py

2019-05-24 Thread Dave S
On Friday, May 24, 2019 at 10:14:24 AM UTC-7, Ari Lion BR Sp wrote: > > In this while, please join us on our Telegram Group... > > https://t.me/web2py_world > > !!! > Thanks! > Maybe I'm too old-school, but having to set up Telegram on my phone in order to use Telegram on the web (with a decen

Re: [web2py] Re: Scheduler is Not Running

2019-05-24 Thread Suhas Jadhav
HI Dave, How do I make hcstar as a task. What is wrong in my code? Thanks, Suhas On Fri, May 24, 2019 at 1:25 PM Dave S wrote: > > > On Friday, May 24, 2019 at 12:05:31 AM UTC-7, Suhas Jadhav wrote: >> >> Hi, >> >> I have following code >> >> def fun1: >> do something >> returns local

[web2py] Re: GAE Task Queue no longer passes payload to web2py function

2019-05-24 Thread Dave S
On Friday, May 24, 2019 at 3:43:26 AM UTC-7, Carl Hunter Roach wrote: > > This code has been working for a couple of years but, for an unknown > reason to me, has stopped working. > > This function continues to create Tasks correctly. > > def send_task(): > from google.appengine.

[web2py] Re: Scheduler is Not Running

2019-05-24 Thread Dave S
On Friday, May 24, 2019 at 12:05:31 AM UTC-7, Suhas Jadhav wrote: > > Hi, > > I have following code > > def fun1: > do something > returns locals() > > I have below code in scheduler.py > > def hcstar(): > LOAD('monitoring',' fun1') > > from gluon.scheduler import Scheduler > sch

[web2py] Re: I can not import module in app

2019-05-24 Thread Dave S
On Thursday, May 23, 2019 at 11:44:19 PM UTC-7, Константин Комков wrote: > > Christian Varas, I don't find solution. > Dave S, yes I tried import mytest like one line without system modules, > and like that: > from applications.application.modules import mytest > Is "mymod" your app name? > > No

[web2py] subprocess.Popen then release

2019-05-24 Thread lucas
hello one and all, ok, using python 2.7 and web2py 2.18.5 on centos or raspbian linux. is there a way to start a python script file, a file that runs python all on its own from the command line interface, and start or spawn it under a web2py controller function, have web2py immediately, comple

Re: [web2py] Re: web2py managing capacity ?

2019-05-24 Thread karthikeyan p
Thanks for reply ; i will try this ! On Fri, 24 May 2019 at 8:22 PM, Carlos Costa wrote: > sociability? > > Em sex, 24 de mai de 2019 às 05:18, 黄祥 > escreveu: > >> how to use it with postgresql ? >>> >> >> pls set the uri connection first >> *e.g. private/appconfig.ini* >> uri = postgres://post

[web2py] Re: A little suggestion: Create a forum for web3py

2019-05-24 Thread Ari Lion BR Sp
In this while, please join us on our Telegram Group... https://t.me/web2py_world !!! Thanks! Em sexta-feira, 24 de maio de 2019 05:15:09 UTC-3, Massimo Di Pierro escreveu: > > yes. but after it is officially released. > > On Wednesday, 22 May 2019 18:24:44 UTC-7, Daniel Guilhermino wrote: >> >>

[web2py] Re: Could this problem in production be related to web2py?

2019-05-24 Thread Leonel Câmara
Thanks a lot for explaining what was happening. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to th

[web2py] Re: Could this problem in production be related to web2py?

2019-05-24 Thread Lisandro
I've found the root cause of the issue: the guilty was Redis. This is what was happening: Redis has an option for persistance wich stores the DB to the disk every certain amount of time. The configuration I had was the one that comes by default with Redis,

Re: [web2py] Re: web2py managing capacity ?

2019-05-24 Thread Carlos Costa
sociability? Em sex, 24 de mai de 2019 às 05:18, 黄祥 escreveu: > how to use it with postgresql ? >> > > pls set the uri connection first > *e.g. private/appconfig.ini* > uri = postgres://postgres:password@localhost/database_name > > *ref:* > > http://web2py.com/books/default/chapter/29/06/the-dat

[web2py] Re: accessing the name of post vars

2019-05-24 Thread villas
Either: www.example.com/welcome/default/index/sum request.args(0) == 'sum' Or: www.example.com/welcome/default/index?key=sum request.vars.key == 'sum' On Friday, 24 May 2019 09:11:12 UTC+1,

Re: [web2py] Re: accessing the name of post vars

2019-05-24 Thread 黄祥
> > I want to access the posting variable name not is value . Is there any way > ? > there should be any way for those who seeks *pls try (untested)* dict_post_vars = request.post_vars dict_post_vars.keys() *ref:* http://web2py.com/books/default/chapter/29/02/the-python-language#dict best rega

[web2py] Re: Pypi project link to web2py

2019-05-24 Thread 黄祥
> > Is it possible uploading the project from my computer or using a github > repo? > think there are uploaded service in http://localhost:8000/admin on the right side said : 'Upload and install packed application' you can upload *.w2p file or github repo link or another way if you are in compu

Re: [web2py] Re: accessing the name of post vars

2019-05-24 Thread karthikeyan p
Hi Thanks for reply. I want to access the posting variable name not is value . Is there any way ? On Fri, 24 May 2019 at 1:45 PM, 黄祥 wrote: > www.example.com/welcome/default/index?sum >> >> how to get "sum" in controller ?? >> > > did request.vars not work ? > ref: > http://web2py.com/books/de

[web2py] Re: web2py managing capacity ?

2019-05-24 Thread 黄祥
> > how to use it with postgresql ? > pls set the uri connection first *e.g. private/appconfig.ini* uri = postgres://postgres:password@localhost/database_name *ref:* http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Connection-strings-the-uri-parameter- best regard

[web2py] Re: accessing the name of post vars

2019-05-24 Thread 黄祥
> > www.example.com/welcome/default/index?sum > > how to get "sum" in controller ?? > did request.vars not work ? ref: http://web2py.com/books/default/chapter/29/04/the-core#request best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github

[web2py] Re: A little suggestion: Create a forum for web3py

2019-05-24 Thread Massimo Di Pierro
yes. but after it is officially released. On Wednesday, 22 May 2019 18:24:44 UTC-7, Daniel Guilhermino wrote: > > Hi, > > I believe that over time the web2py/web3py forum mixing the two frameworks > in the same place will be very polluted and probably will even create > confusion for users. I wo

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-05-24 Thread Massimo Di Pierro
web2py runs on python 2 and python 3 but most of the apps are written for python 2. your existing apps will have to be modified. web2py does not care. On Wednesday, 22 May 2019 14:43:38 UTC-7, lucas wrote: > > hello one and all, > > yes, I have web2py 2.17.2 running on a raspberry pi model 3 b+,

[web2py] web2py managing capacity ?

2019-05-24 Thread karthikeyan p
hello , i am new to web2py , i found its a great . i have planned to make my website with it . i want to know sociability of web2py ! how to use it with postgresql ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

Re: [web2py] web2py comparison with Jam.py

2019-05-24 Thread r rad
Hi, all By accidentally checking the list, I found this topic. Since I'm pretty much affected both with questions and answers, here are some of my opinions: - Jam.py is strictly focused on developing a web database app in the enterprise. - Jam.py has a good old event handler development system,

[web2py] accessing the name of post vars

2019-05-24 Thread karthikeyan p
www.example.com/welcome/default/index?sum how to get "sum" in controller ?? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message bec

[web2py] Pypi project link to web2py

2019-05-24 Thread ZAHED BRI
I have a pypi project downloaded for university listing and search. I would like to link that project to a new app in web2py. Is it possible uploading the project from my computer or using a github repo? Kindly let me learn the process in details, anyone who has done this sorts of projects before

[web2py] Scheduler is Not Running

2019-05-24 Thread Suhas Jadhav
Hi, I have following code def fun1: do something returns locals() I have below code in scheduler.py def hcstar(): LOAD('monitoring',' fun1') from gluon.scheduler import Scheduler scheduler2 = Scheduler(db,tasks=dict(hcstar=hcstar,fun1=func2)) I have scheduled the task to run e