Re: [web2py] Composite key in web2py

2019-08-19 Thread Johann Spies
On Tue, 20 Aug 2019 at 07:00, Deep Shah wrote: > Hi All, > I am migrating table from existing table which has primary key with two > fields. > After migrating the table i created SQLFORM.grid and used selectable to > process the selected tuples. > selectable = [('Approve Selected names', lambda i

[web2py] Composite key in web2py

2019-08-19 Thread Deep Shah
Hi All, I am migrating table from existing table which has primary key with two fields. After migrating the table i created SQLFORM.grid and used selectable to process the selected tuples. selectable = [('Approve Selected names', lambda ids: approve_name(ids))] Its giving the following error. '

[web2py] Re: Automatic user logout & redirect

2019-08-19 Thread Paco Bernal
redirect(URL('index'), client_side=True) -- 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 Googl

[web2py] Re: SQLFORM.grid Add and Edit buttons incorrect links when running inside another view

2019-08-19 Thread Dave S
On Saturday, August 17, 2019 at 9:22:15 AM UTC-7, Flavio Bovio wrote: > > > *Add and edit button links are created incorrectly when the grid is inside > another view. With the smartgrid works ok.* > > *Add button link* > http://localhost:8000/erp_proto/tablas_grales/index/addt/forma_pago

[web2py] Re: How to resize div image

2019-08-19 Thread Dave S
On Saturday, August 17, 2019 at 7:58:54 AM UTC-7, Maurice Waka wrote: > > I'm trying t resize a div image but keep getting syntax errors. > > > > > > Done this: > > > > > > I need help here to get the correct code on this single line. > > Kind regards > css attributes need to have a '_' (under

Re: [web2py] Re: any travis expert can help debug failures?

2019-08-19 Thread Massimo Di Pierro
Yes -- 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 Google Groups "web2py-users" group. To un

[web2py] Problem importing installed module

2019-08-19 Thread Ian W. Scott
When I try to import pytz at the top of my db.py model I'm getting the following error: No module named 'applications.paideia.modules.pytz' "paideia" is the name of the application. I'm running python 3.7 and double-checked that pytz is accessible from the py3.7 interactive prompt. It is.

[web2py] Example mod_wsgi config file?

2019-08-19 Thread Ian W. Scott
The web2py book refers to a sample wsgi config file (web2py-wsgi.conf) that is supposed to be in the "scripts" folder. But it's not there in the current production release. Is that available somewhere? I'm running into some problems with my config. Thanks. -- Resources: - http://web2py.com -

Re: [web2py] Re: any travis expert can help debug failures?

2019-08-19 Thread Richard Vézina
Did you fix it? On Sun, Aug 18, 2019 at 2:40 AM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I think I fixed. Travis updated the docker image and broke some stuff. > > On Saturday, 17 August 2019 22:13:57 UTC-7, Massimo Di Pierro wrote: >> >> Any idea why web2py on travisci is failing

[web2py] Is there way to trace web2py files?

2019-08-19 Thread Константин Комков
Is there way to trace web2py files? For example, URL function is interesting for me and I found its description in html.py then I want to know how it work step by step when it's called from my app... Also I created breakpoint in my controller and push the button like on picture, then I had error

Re: [web2py] Web2Py with LDAP and SAML : Is it worth it for Windows ?

2019-08-19 Thread Pbop
I am not familiar enough with how AUTH works but can offer a perspective that might help to the level you want AUTH to support AD or SAML2 SSOs. In both AD and SAML using the Shibboleth IIS Plug-in, you are in essence designating a protected folder on the IIS web-server to require authenticati

[web2py] Re: Automatic user logout & redirect

2019-08-19 Thread mostwanted
Another issue i am facing with redirecting is here, i am using ajax to take the registration key from the user to a controller, what is supposed to happen is that if the registration key is valid the user should be redirected to another page allowing them normal application usage. The directing

[web2py] Re: Automatic user logout & redirect

2019-08-19 Thread mostwanted
WOOOW, you saved my life @Val K, a million thanks, that was curelessness on my part, sometimes one gets so tired you miss the obvious. I modified the code to this & it works, thank you again. import datetime def index(): exp_date=db(db.expiry_date_table).select() for exp_d in exp_date:

[web2py] Re: Automatic user logout & redirect

2019-08-19 Thread Val K
There is no 'select' in your code. Is that a typo? -- 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