[web2py] strange behavior of cache.ram and routes.py on a virtual server

2018-05-04 Thread Martin Weissenboeck
I use the example from the book and change the time to 60 seconds: ​def cache_in_ram(): import time t = cache.ram('time', lambda: time.ctime(), time_expire=60) return locals() ​Now I call this function rapidly during the cache-time (60 seconds). It should show always the same time - b

[web2py] Re: strange behavior of cache.ram and routes.py on a virtual server

2018-05-04 Thread Anthony
If your web server runs multiple workers in separate processes (e.g., the uwsgi setup here ), then each process will have its own cache.ram and loaded routes. If you

[web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-05-04 Thread Anthony
> > I'm using an old web2py version (Version > 2.10.3-stable+timestamp.2015.04.02.21.42.07). > I already have plans to upgrade. > But before, could I manually update only gluon/contrib/redis_*.py files? > In your opinion, does that test worthwhile? Does it make any sense? > I haven't studied th

Re: [web2py] pyDAL "adapter" for Pandas syntax (phylosophical)

2018-05-04 Thread Richard Vézina
By include in pandas I mean add support to pydal in pandas so you can do something like : df = pd.DataFrame.from_pydal(db(...).select(...)) Richard On Fri, May 4, 2018 at 1:10 AM, Jurgis Pralgauskis < jurgis.pralgaus...@gmail.com> wrote: > I'd like not to include sth into Pandas, but to adapt P

Re: [web2py] Re: strange behavior of cache.ram and routes.py on a virtual server

2018-05-04 Thread Martin Weissenboeck
redis works great - thank for this hint! Regards Martin 2018-05-04 15:11 GMT+02:00 Anthony : > If your web server runs multiple workers in separate processes (e.g., the > uwsgi setup here >

Re: [web2py] LDAP user first name and last name not getting in the database

2018-05-04 Thread Gaurav Shet
Even I am facing the same issue. Were you able to resolve this? On Sat, 28 Apr 2018 at 11:20 PM, Oasis Agano wrote: > Greetings, > > I have setup an LDAP connection that works, > the user can sign in but the issue is after signing in the *first_name* > and *last_name* and *email* arent stored in

[web2py] Re: LDAP user first name and last name not getting in the database

2018-05-04 Thread Oasis Agano
Yes i solved it by just doing this: auth.settings.login_methods.append(ldap_auth(mode='ad', manage_groups= True, manage_user=True, db = db,

[web2py] Re: Unable to override Bootstrap in layout.html

2018-05-04 Thread pbreit
I wasn't able to make color work either but background-color did seem to work. Maybe there's a transparency going on or something. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/

[web2py] Scheduler: Is it possible to assign a task to all workers that are part of a group?

2018-05-04 Thread Francisco Ribeiro
The question refers to submitting a task simultaneously to all workers within a group. Thank you -- 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 rec

[web2py] certbot vs web2py -- geoip import break

2018-05-04 Thread Dave S
Here's a wierd one: AWS Linux, nginx, uwsgi, web2py 2.15.4, very stable. I use certbot --nginx to update my certs (yes, Let's Encrypt), which works 90% (seems to have missed getting an ln step right at the end, fixed manually). But then my module which imports geolite2 from geoip gets "impo