Re: [web2py] Re: Flash messages

2018-04-05 Thread Maurice Waka
Dave. Did you send a blank message? On Thu, 5 Apr 2018, 00:13 Dave S wrote: > > > On Wednesday, April 4, 2018 at 2:37:07 AM UTC-7, Maurice Waka wrote: >> >> In web2py we have flash messages such as 'Success' when form is accepted >> etc. >> Is there a way to have an animation flash with a messa

[web2py] How to update script deployment with the latest master commit ?

2018-04-05 Thread icodk
Script deployment ( ex. setup-web2py-nginx-uwsgi-ubuntu.sh) installs the latest release. how to update it to the latest master commit ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/

[web2py] Re: How to update script deployment with the latest master commit ?

2018-04-05 Thread 黄祥
perhaps you can change this part wget http://web2py.com/examples/static/web2py_src.zip unzip web2py_src.zip with (untested and assuming git already installed on your machine) git clone --recursive https://github.com/web2py/web2py.git best regards, stifan -- Resources: - http://web2py.com - http

[web2py] Re: How to update script deployment with the latest master commit ?

2018-04-05 Thread icodk
Yes this will probably work. Thanks What I did was to delete web2py after script installation and clone it fro master. Because only after the installation I discovered that there are some errors in the release that are fixed in the master. ( the error I found is in definition of fieldVirtual) On

Re: [web2py] Flash messages

2018-04-05 Thread António Ramos
I guess you have to use ajax to load the page for example use js jQuery('#target').html("LOADING..."); // this creates a spinner or a waiting message in the #target ajax('"yoururl", [], 'target');when data received, replaces the spinner. in the #target Just an example . I´m sure there is oth

Re: [web2py] Re: Confused about web2py sessions handling in the filesystem, versus the db handling.

2018-04-05 Thread Richard Vézina
Thank you Anthony as always very clear explanations. :) Richard On Wed, Apr 4, 2018 at 5:19 PM, Anthony wrote: > This behavior is controlled by the following auth.settings: > > renew_session_onlogin (default=True) > keep_session_onlogin (default=True) > renew_session_onlogout (default=True) >

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

2018-04-05 Thread Lisandro
Hi there! This is somehow related to this other topic [1], which I have closed because I've found some new evidence and I though it would be better to open a new topic. I'm having this problem where a simple select on auth_user table hangs indefinitely, until timeout. The problem occurs in one

[web2py] Re: Error on migrate=True

2018-04-05 Thread Stephan
Hi Antony, does not seem to work. I still get an error by setting migrate to true. In which directory are the *.table file written to? thx (1050, "Table 'auth_user' already exists")Version web2py™ Version 2.8.2-stable+timestamp.2013.11.28.13.54.07Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11

[web2py] Re: Request with login privileges hangs for a specific user account, how to debug it?

2018-04-05 Thread Anthony
On Tuesday, April 3, 2018 at 8:43:31 AM UTC-4, Lisandro wrote: > > I store the sessions in the database, so there is no problem with a locked > file. > > I've just found something interesting that could help to figure out: when > the problem presents, I checked the pg_stat_activity in postgres to

[web2py] Re: Request with login privileges hangs for a specific user account, how to debug it?

2018-04-05 Thread Lisandro
Thank you Anthony, yes I'm aware of that. I use it like that for this reason: sometimes (not very often) an external app modifies a field of the auth_user table (specifically, it sets true or false a field that I use as a flag). However that change isn't updated to auth.user. In order to do so,

[web2py] Re: Allow to add new record from formdropdown list

2018-04-05 Thread greenpoise
nevermind. Figured this one out. It does take you away from the page though. Or so it seams like. On Wednesday, April 4, 2018 at 4:33:15 PM UTC-7, greenpoise wrote: > > how can I test this? I tried following your example. Trying to accomplish > the same. Thanks > > On Thursday, March 22, 2018 a

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

2018-04-05 Thread Anthony
For any select that takes place within a transaction, Postgres by default automatically acquires a access share lock on the involved tables, so this should be happening on all requests. However, access share locks do not conflict with each other, so I don't think these locks are necessarily the

[web2py] Re: Request with login privileges hangs for a specific user account, how to debug it?

2018-04-05 Thread Anthony
On Thursday, April 5, 2018 at 2:57:20 PM UTC-4, Lisandro wrote: > > Thank you Anthony, yes I'm aware of that. > I use it like that for this reason: sometimes (not very often) an external > app modifies a field of the auth_user table (specifically, it sets true or > false a field that I use as a f

[web2py] Re: Error on migrate=True

2018-04-05 Thread Anthony
Need to see your code. With fake_migrate_all=True, the DAL will generate migration files but no run any migrations, so you cannot get that error. Anthony On Thursday, April 5, 2018 at 11:49:38 AM UTC-4, Stephan wrote: > > Hi Antony, > does not seem to work. > I still get an error by setting mig

[web2py] Re: Error on migrate=True

2018-04-05 Thread Stephan
I got the error afterwards, i.e. I ran fake_migration_all (without errors) and then I altered a table and kicked migrate=true. That's where I ran into the same error as before. Am Donnerstag, 5. April 2018 22:54:16 UTC+2 schrieb Anthony: > > Need to see your code. With fake_migrate_all=True, the

[web2py] Re: Error on migrate=True

2018-04-05 Thread Anthony
On Thursday, April 5, 2018 at 5:39:38 PM UTC-4, Stephan wrote: > > I got the error afterwards, i.e. I ran fake_migration_all (without errors) > and then I altered a table and kicked migrate=true. That's where I ran into > the same error as before. > *.table files are in the /databases folder. Th