[web2py] Mixed login (openid and default auth)

2018-10-29 Thread Manuele Pesenti
Hi! Is there a way to let a web2py application support both openid and standard authentication in parallel? Applying what mentioned in the documentation[*] the standard login form is substituted with the openid form and there's no way to login the application using username and password. An

[web2py] Re: Mixed login (openid and default auth)

2018-10-29 Thread Manuele
Ok the answere was in the documentation itself, just downbunder... http://web2py.com/books/default/chapter/29/09/access-control#Multiple-login-forms but even other suggestions about your experience about the topic are welcome. Best regards Il giorno lunedì 29 ottobre 2018 12:29:27 UTC+1, Manue

[web2py] Changing auth form

2018-10-29 Thread Константин Комков
Hello! Give me advice, please. If I want to change auth form, can I do like that: {{=form.custom.begin}} E-mail {{=form.custom.widget.email}} Пароль {{=form.custom.widget.password}}

[web2py] Re: Changing auth form

2018-10-29 Thread Константин Комков
[image: autweh.png] Now form is beautiful, but I don't know Is that right? -- 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 bec

[web2py] DAL and DB VIEWS

2018-10-29 Thread Ben Duncan
Is it possible to use predefined Postgres views inside of DAL? By views i mean (SQL code) CREATE VIEW myview AS select .. from tablea, tableb WHERE .. ); Thanks Ben Duncan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sour

[web2py] How to download a copied file to the Upload folder

2018-10-29 Thread Luis Sucuc
Hello! The previous programmer copied files directly into the Uploads folder, I need to be able to download them now but using the following does not work. My view In administrator.py @cache.action() def download(): return response.download(request, db) The application is alrea

[web2py] Re: How to download a copied file to the Upload folder

2018-10-29 Thread 黄祥
not sure, fully understand what you want to achieve it, think you want to have the files in uploads folder, then why not remote the server then copy it via terminal (rsync, scp, etc) ? if you want to do it in web2py way perhaps you can try : http://web2py.com/books/default/chapter/29/14/other-rec

[web2py] Re: DAL and DB VIEWS

2018-10-29 Thread 黄祥
had you try DAL's execute sql ? ref: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#executesql best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

Re: [web2py] Re: DAL and DB VIEWS

2018-10-29 Thread Ben Duncan
I'm thinking it should be no different than defining a table, since these are all external / predefined tables. The difference is that Postgres handles the sql and I'm guessing with DAL, it's just data returned. Ben Duncan On Mon, Oct 29, 2018 at 12:14 PM 黄祥 wrote: > had you try DAL's execute s

Re: [web2py] Re: DAL and DB VIEWS

2018-10-29 Thread Ben Duncan
Ok, found the answer ... https://groups.google.com/forum/#!topic/web2py/DCsnCkQnIoA On Mon, Oct 29, 2018 at 12:27 PM Ben Duncan wrote: > I'm thinking it should be no different than defining a table, since these > are all external / predefined tables. > The difference is that Postgres handles the

[web2py] sidebars still used in 2.17.2?

2018-10-29 Thread Alex Glaros
Also, where is this linked from? It’s in the welcome site: \web2py\applications\examples\views\default\support.htm -- 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 I

[web2py] sidebars still used in 2.17.2?

2018-10-29 Thread Alex Glaros
okay, guess I'll this use BS4 to create web page columns - https://getbootstrap.com/docs/4.0/layout/grid/ One of three columns One of three columns One of three columns -- Resources: - http://web2py.com - http://web2py.com/b