Re: [web2py] Web2py and WebRTC?

2016-08-10 Thread 'FERNANDO VILLARROEL' via web2py-users
Dear Massimo.I did tested opentok great tip!!! Regards On Saturday, August 6, 2016 4:43 AM, Massimo Di Pierro wrote: I would use opentok On Tuesday, 2 August 2016 19:46:07 UTC-5, Ron Chatterjee wrote: This may help. Its a django app. Someone needs to take

[web2py] Re: Redis Session Auth Issue

2016-08-10 Thread Mark Graves
I'm an idiot. Put session below auth. Ignore. On Wednesday, August 10, 2016 at 8:13:55 PM UTC-5, Mark Graves wrote: > > Hey everyone, > > Having trouble tracking down a bug, looking for a sanity check. > > Somehow, when I turn on redis sessions, auth is not getting updated from > the session.

[web2py] Redis Session Auth Issue

2016-08-10 Thread Mark Graves
Hey everyone, Having trouble tracking down a bug, looking for a sanity check. Somehow, when I turn on redis sessions, auth is not getting updated from the session. This behavior manifests itself as a 303 with functions that are decorated with @auth.requires. Basic Workflow: Ajax

[web2py] Re: redirect to caller function

2016-08-10 Thread marchaos
thanks. writing to session worked for me. -- 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 the

Re: [web2py] need code to update db from view to controller.

2016-08-10 Thread Dave S
On Wednesday, August 10, 2016 at 3:52:20 AM UTC-7, madhu nomula wrote: > > Yes totalrecords decalred. > > Updated the code like below in controller: But still throwing issue > > What issue is thrown? Do you get a ticket, or wrong results? /dps -- Resources: - http://web2py.com -

[web2py] Re: redirect to caller function

2016-08-10 Thread Dave S
On Wednesday, August 10, 2016 at 1:03:48 PM UTC-7, marchaos wrote: > > thanks dave, that's right, add() is a controller. > > however request.env["HTTP_REFERER"] doesn't work here for me: > > the add() function is called twice. first to generate the form and second > call to validate

[web2py] Re: redirect to caller function

2016-08-10 Thread marchaos
thanks dave, that's right, add() is a controller. however request.env["HTTP_REFERER"] doesn't work here for me: the add() function is called twice. first to generate the form and second call to validate (form.process().accepted). the second call validates the form and in case of success

Re: [web2py] Re: switch between standard and testing database?

2016-08-10 Thread Richard Vézina
About your question, I think he maybe had try an approach where he was passing some parameters in request... Richard On Wed, Aug 10, 2016 at 12:03 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Here how I realize it : > > # Production > if request.env.web2py_path.split('/')[2] ==

Re: [web2py] Re: switch between standard and testing database?

2016-08-10 Thread Richard Vézina
Here how I realize it : # Production if request.env.web2py_path.split('/')[2] == 'www-data' and request.application == 'app_name': # print 'Prod...' db = DAL('postgres://username_prod:password@127.0.0.1:5432/dbname', pool_size=1, migrate_enabled=False,

Re: [web2py] Re: switch between standard and testing database?

2016-08-10 Thread Mirek Zvolský
Thank you. I have found this inside: def is_running_under_test(request, appname): if request.get('_running_under_test') or testfile_exists(appname): return True else: return False But I am not sure what mean both parts of the condition. I think this run on the TESTED

Re: [web2py] need code to update db from view to controller.

2016-08-10 Thread madhu nomula
Yes totalrecords decalred. Updated the code like below in controller: But still throwing issue Controller code: @auth.requires_login() def update_timesheet(): totalrecords=0; rows = db((db.ActivityMapping.org_id==db.Organization.id)&