[web2py] custom autocomplete fields and style

2019-10-22 Thread Patito Feo
Hi, Is it possible to show an array of fields in the autocomplete like "field1 - field2" ? How can i stylish the dropdown options, backgroup colors, z-indez, position etc? Regards, -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] How to insert/pass image to view using js

2019-10-22 Thread Dave S
On Tuesday, October 22, 2019 at 1:23:46 AM UTC-7, Ruslan Gareev wrote: > > try: > controller function(): >imgs = [' style="max-height=100px;border-radius:7px;"/>'] > > > > tags work great for static files. And for files in the db that use the upload field type, the

[web2py] Re: folder structure and calling controller without folder path

2019-10-22 Thread Dave S
On Tuesday, October 22, 2019 at 3:47:52 AM UTC-7, Ramos wrote: > > Hello > i just noticed that calling > http://my.site.pt/*app*/controller > and > http://my.site.pt/controller > > returns the same thing. So what is the point of having the app folder ??? > > Is this a correct behaviour or am i

[web2py] Web2py arabic translations not working

2019-10-22 Thread John Bannister
Tried to use the ar.py file (usng T()) to translate some text to arabic. Seems that this does not work wheras the likes of Italian (it) does. Has anyone come acrross this issue with 2.18.5? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: wfastcgi , iis & python 3 not working?

2019-10-22 Thread Константин Комков
I have Windows Server 2019, IIS 10, Python 3.7.3, web2py 2.18.5 and it's work. You need to try that web.config:

[web2py] Re: wfastcgi , iis & python 3 not working?

2019-10-22 Thread Davidiam
We have more or less the same configuration with no issues. One thing that might help you though You can setup the admin app to work over https: https://www.youtube.com/watch?v=_4to_44DcJU time : 46:15 Run from web2py base folder : For 2.7 : from gluon.main import save_password;

[web2py] Re: Uploading a file under the Static section of web2py admin gets exception

2019-10-22 Thread Davidiam
On Tuesday, October 22, 2019 at 11:08:07 AM UTC+2, Davidiam wrote: > > Hello, > > I am trying to upload files via the Welcome appadmin in the Static files > section, but the uploads are failing with "Cannot upload file " > > I have now traced this in Pycharm and it is failing on the call to the

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

2019-10-22 Thread Davidiam
Thank you. In the meantime we have gotten Shibboleth working correctly and we have just added an auth login to the user method in the default controller for the app. This way, users are automatically logged in as soon as any routine has they call a method requiring login or a group membership.

[web2py] Re: Setting a pre-authenticated user (no password in auth db) as "logged in" for web2py app

2019-10-22 Thread Davidiam
Thanks! I will try this and get back to you ;-) On Tuesday, October 22, 2019 at 11:56:17 AM UTC+2, Ruslan Gareev wrote: > > Sorry for some unspelling ) It must be auth.login_user(). > Auth class extends AuthApi class. So you do not need use > authapi.login_user. And there is a

[web2py] folder structure and calling controller without folder path

2019-10-22 Thread António Ramos
Hello i just noticed that calling http://my.site.pt/*app*/controller and http://my.site.pt/controller returns the same thing. So what is the point of having the app folder ??? Is this a correct behaviour or am i having any bug in my side ??? regards António -- Resources: - http://web2py.com

Re: [web2py] Re: Web2py binaries

2019-10-22 Thread Nico Zanferrari
Thank you Marius, you suggestion is simpler and is working fine, both for py2 and py3 apps! Cheers, Nico Il giorno mar 22 ott 2019 alle ore 08:25 Marius Rusca < marius.ru...@gmail.com> ha scritto: > Hi > > I downloaded web2py_osx.2_18_5.py3_app.zip >

[web2py] Re: Setting a pre-authenticated user (no password in auth db) as "logged in" for web2py app

2019-10-22 Thread Ruslan Gareev
Sorry for some unspelling ) It must be auth.login_user(). Auth class extends AuthApi class. So you not need use authapi.login_user. And there is a `settings.renew_session_onlogin` in login_user, and i think that it is equal to False, and your session is not renewed, when you using

[web2py] Re: Setting a pre-authenticated user (no password in auth db) as "logged in" for web2py app

2019-10-22 Thread Davidiam
Hello Ruslan, I used this syntax in the user method of the default.py controller for my app : user = authapi.login_user(user) # in your original reply you recommended the Authapi method, so I used that one. This worked, and my user was logged in, but the user login form which was still

[web2py] Uploading a file under the Static section of web2py admin gets exception

2019-10-22 Thread Davidiam
Hello, I am trying to upload files via the Welcome appadmin in the Static files section, but the uploads are failing with "Cannot upload file " I have now traced this in Pycharm and it is failing on the call to the count_lines method in the admin\controllers\default.py In the debugger I see

[web2py] Re: Debugger

2019-10-22 Thread Константин Комков
If somebody use debagger, please told how I can create breakpoin and after that see variables. In start of my default.py I wrote *from gluon.debug import dbg* and I have that code: if form.process().accepted: if form.vars.TEACHERS_ID == '':

[web2py] Re: About response.toolbar

2019-10-22 Thread Константин Комков
Massimo Di Pierro, please, told about *db stats* or where I can find file for check it myself. -- 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

[web2py] Debugger

2019-10-22 Thread Константин Комков
I want add brakpoint in my app. After that I click on breakpoins button I have error: Error ticket for "admin"Ticket ID 127.0.0.1.2019-10-22.11-52-19.9c598e8d-223c-4134-a4a0-27852a9c40f8 'charmap' codec can't decode byte 0x98 in position 6123: character maps to Версия web2py™ Version

Re: [web2py] How to insert/pass image to view using js

2019-10-22 Thread Ruslan Gareev
try: controller function(): imgs = [''] суббота, 19 октября 2019 г., 19:43:39 UTC+5 пользователь Maurice Waka написал: > > Hello > I need to pass the image link from the controller to js > controller function(): > imgs = [" style=\"max-height='100px';border-radius:7px;\"/>"] > > view

[web2py] Re: Setting a pre-authenticated user (no password in auth db) as "logged in" for web2py app

2019-10-22 Thread Ruslan Gareev
Hi. How did you used login_user method? Is it was like this: auth.login_user(user) ? пятница, 18 октября 2019 г., 18:34:31 UTC+5 пользователь Davidiam написал: > > Hello Ruslan, > > I tried to use the "authapi.login_user" method but it looks to me like > the login_bare method works better and

Re: [web2py] Re: Web2py binaries

2019-10-22 Thread Marius Rusca
Hi I downloaded web2py_osx.2_18_5.py3_app.zip with safari on macos catalina. 'control' + click on downloaded file and allowed me to 'open' after some warning. I moved the file in applications and then

[web2py] wfastcgi , iis & python 3 not working?

2019-10-22 Thread martel berends
I'm trying to deploy a web2py server with the following specs: - Windows server 2019 - IIS 10 - Python 3.5 above I followed the deployment scripts in de manual ( http://web2py.com/books/default/chapter/29/13/deployment-recipes#IIS) and the excellent video of Remco Boerma