Re: [web2py] Re: Unable to update database entry after compute=lambda r: calculation of some field values in the DB

2018-10-26 Thread mostwanted
Hey SP, i dont think the problem was the code itself, there must have been something wrong with the version of web2py i had implemented my application on because when i switched to version 2.17.2 that problem disappeard, so i just assumed the problem was with the previous version of web2py i was

[web2py] Re: Issue between 2.14.5 and 2.17.2

2018-10-26 Thread Anthony
Nothing changed. It has always been necessary to explicitly import any external libraries. The web2py environment only includes some of the core API objects. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - http

Re: [web2py] Re: No module named states

2018-10-26 Thread Lovedie JC
That is python 2.7, web2py 2.17.2 On Sat, 27 Oct 2018, 00:36 Lovedie JC wrote: > Latest of both. > > On Fri, 26 Oct 2018, 23:31 Dave S wrote: > >> >> >> On Friday, October 26, 2018 at 6:05:03 AM UTC-7, lbjc...@gmail.com wrote: >>> >>> I have a module with this: from gluon.contrib.states import

Re: [web2py] Re: No module named states

2018-10-26 Thread Lovedie JC
Latest of both. On Fri, 26 Oct 2018, 23:31 Dave S wrote: > > > On Friday, October 26, 2018 at 6:05:03 AM UTC-7, lbjc...@gmail.com wrote: >> >> I have a module with this: from gluon.contrib.states import * >> >> Getting the above error. >> >> Regards >> > > Which version of web2py and of python?

[web2py] Re: UPDATE with limit

2018-10-26 Thread Dave S
On Friday, October 26, 2018 at 11:28:48 AM UTC-7, Artem wrote: > > Dear All , > 1. How to make DAL query with update only one/first record : > 'UPDATE itft SET task_status = "S", w_id="w_id" WHERE task_status = "N" > LIMIT 1;' > When i try something like: > db(db['itft']['task_status']=="N").up

[web2py] Re: No module named states

2018-10-26 Thread Dave S
On Friday, October 26, 2018 at 6:05:03 AM UTC-7, lbjc...@gmail.com wrote: > > I have a module with this: from gluon.contrib.states import * > > Getting the above error. > > Regards > Which version of web2py and of python? /dps -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] UPDATE with limit

2018-10-26 Thread Artem
Dear All , 1. How to make DAL query with update only one/first record : 'UPDATE itft SET task_status = "S", w_id="w_id" WHERE task_status = "N" LIMIT 1;' When i try something like: db(db['itft']['task_status']=="N").update(task_status = "S",w_id= "w_id", limitby=(0,1)) all rows with task_status =

[web2py] Re: Issue between 2.14.5 and 2.17.2

2018-10-26 Thread 'Annet' via web2py-users
Thank you both for your replies. Are you on the same filesystem/OS? Is it possible your OS sort order is now > different, so "_" sorts after the digits instead of before? Try changing > 0_imports.py to 00_imports.py. > I tried, but it did not solve the issue. Like Carlos said I had add the imp

[web2py] Auth issues when using ldap

2018-10-26 Thread lbjc1978
I am trying out the ldap authentication from an app but encountered this error: File "/home/mau/web2py/gluon/globals.py", line 421, in self._caller = lambda f: f() File "/home/mau/web2py/applications/schoop/controllers/default.py"

[web2py] No module named states

2018-10-26 Thread lbjc1978
I have a module with this: from gluon.contrib.states import * Getting the above error. Regards -- 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 recei

Re: [web2py] Re: Auth question

2018-10-26 Thread Jim Steil
Can you show the entire db.py, default py and index.html? Jim On Fri, Oct 26, 2018, 1:44 AM Rahul wrote: > Nope - doesnt help. I commented out all the user functions defined in the > controller and > > > # User functions --- > '''def login(): return dict(form=auth.login()) > def register(

Re: [web2py] Re: Auth question

2018-10-26 Thread Dave S
On Thursday, October 25, 2018 at 11:44:18 PM UTC-7, Rahul wrote: [...] > I even decorated index - It does take me to the login screen but from > there nothing happens. It just wont log me in like it did before. Also, I > have two users in database but none work now. Again, register seems to