Re: [web2py] Re: I can not import module in app

2019-05-23 Thread Christian Varas
I'm facing the same issue, did you already found the solution? Btw, I'm running web2py in my android phone, maybe for me is quite different... Cheers. Chris. El jue., 23 de may. de 2019 07:03, Константин Комков escribió: > Maybe it info can help? > Error snapshot [image: help] >

Re: [web2py] Electron, NWjs or Netralinojs and web2py

2019-05-23 Thread Carlos Costa
I did it with python cef and was easy. Em qui, 23 de mai de 2019 às 11:08, rāma escreveu: > Hi, > > Is there anyone working on packaging web2py as an webview app? > > Is it easily deployable with these kits? > > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation)

[web2py] Electron, NWjs or Netralinojs and web2py

2019-05-23 Thread rāma
Hi, Is there anyone working on packaging web2py as an webview app? Is it easily deployable with these kits? -- 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)

[web2py] Re: has_membership('unicode string') raise an UnicodeDecodeError exception

2019-05-23 Thread Dmitry Mosin
Solution is simple (maybe not so obvious), and caused by newer FreeTDS version So I've changed: db = DAL('mssql://DSN=APP_DSN;UID=dbuser;PWD=dbpass', db_codec='utf-8', to db = DAL('mssql2://DSN=APP_DSN;UID=dbuser;PWD=dbpass', db_codec='utf-8', And everything is OK now/ --

[web2py] Re: Using a recursive select but encountered a broken reference

2019-05-23 Thread Leonel Câmara
So you're indeed using common filters because that's how record versioning is implemented. In this case you can solve it by removing the reference before deleting, however if you still want to be able to see the deleted record on the one referencing it you can set the versioned table

[web2py] Re: I can not import module in app

2019-05-23 Thread Константин Комков
Maybe it info can help? Error snapshot [image: help] (No module named application.modules) inspect attributes Frames - *File

[web2py] Re: Can I use my function like decorator?

2019-05-23 Thread Leonel Câmara
You should decorate like this @emailConfirmed not like this @emailConfirmed() fun is the function it is decorating, so yes it's your swed and docs functions -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: has_membership('unicode string') raise an UnicodeDecodeError exception

2019-05-23 Thread Dmitry Mosin
perhaps you need to set LANG environment system variables > export LC_ALL=C.UTF-8 > I'll try, but old version still works with LANG=C > seen many case error during run python 3 apps like this, especially in > docker linux container, n cured by set LANG variables > There is Python2.7...

[web2py] Re: has_membership('unicode string') raise an UnicodeDecodeError exception

2019-05-23 Thread 黄祥
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 72: > ordinal not in range(128) > > Any suggestions? > > perhaps you need to set LANG environment system variables *e.g. not tested* export LC_ALL=C.UTF-8 export LANG=C.UTF-8 seen many case error during run python 3 apps

[web2py] Re: More then one buttons on form

2019-05-23 Thread Константин Комков
*João Matos*, *Christian Varas* thank you! -- 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

[web2py] Re: Redirect to new page from ajax request

2019-05-23 Thread Константин Комков
In that case 'redirect(URL('bak','swed'), client_side=True)' console is clear, and no actions for user. My code now: ajaxAnswer = '["11"]' return ajaxAnswer JS function showMsg(data) { data = JSON.parse(data); ... else if (data[0]==11) {

[web2py] has_membership('unicode string') raise an UnicodeDecodeError exception

2019-05-23 Thread Dmitry Mosin
Hello! After upgrading the framework from 2.9.5 to 2.18.5 a code like this auth.has_membership(role='Супервизор') or auth.has_membership(auth.id_group('Супервизор')) leads to UnicodeDecodeError exception. Even db.auth_group.role == 'Супервизор' in /app/appadmin/select/db throws an exception

[web2py] Re: Can I use my function like decorator?

2019-05-23 Thread Константин Комков
Thank you. What is argument (fun)? Is it my functions swed() and docs()? If I do like that I have error that emailConfirmed() takes exactly 1 argument (0 given): def emailConfirmed(fun): def decorated(): if session.abit_email is None: redirect(URL('default','index'))