[web2py] Update python version in web2py 2.18.3

2019-03-07 Thread Константин Комков
I have projects which was created on python 2.7.10. Now I want to update python to version 3.7.2 it is aim. Python 2.7.11, 2.7.12 - work. Python 2.7.13 couldn't connect to database. When I open project I heve error link. When I want to see error message I see "Admin panel is switched-off becouse

[web2py] Re: Update python version in web2py 2.18.3

2019-03-07 Thread Leonel Câmara
Seems like you don't have the module used as a driver for your database in python 3 because it's trying to use the 2.7 one for some reason. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2p

[web2py] Re: Update python version in web2py 2.18.3

2019-03-07 Thread Константин Комков
Leonel Câmara, I use fdb driver for firebird 2.5 and python 2.7.13. In fdb driver and python 2.7.12 I don't have that error. It is first issue. Second issue is that when I want to see error in web2py I see message "Admin panel is switched-off" It isn't normal for web2py on server. It's stable er

[web2py] Re: Update python version in web2py 2.18.3

2019-03-07 Thread Leonel Câmara
Those internal errors are caused by session files created by python 2 which are not readable by python 3. You should be able to go to admin if you clear the contents of the session folders in both your app and admin. Throw in a fake migration for good measure. -- Resources: - http://web2py.com

[web2py] Re: bug in recent versions of web2py related to unicode encoding in mail()

2019-03-07 Thread Shawn Michaels
Hi, I'm facing similar problem in Version 2.17.2 when there is unicode char in subject or message. Python 3.6 Traceback (most recent call last): File "/www/projects/web2py/gluon/shell.py", line 276, in run execfile(startfile, _env) File "/www/projects/web2py/gluon/shell.py", line 41, in e

[web2py] Re: Update python version in web2py 2.18.3

2019-03-07 Thread Константин Комков
Why are you talking about python 3 if I use python 2.7.13? I thought that you are talking about python 3 becouse I installed it before and some sessions was created in admin and app, is it so? In that case I need to tell you I deleted python 3 in programms now and clear folders sessions in admi

[web2py] Re: Update python version in web2py 2.18.3

2019-03-07 Thread Leonel Câmara
I'm sorry, I misunderstood, I thought you were using python 2 and changed to python 3. It appears you kept using python 2 but tried python 3 at one time. Delete the session files in the sessions folder of admin and your application, delete the error files in the errors folder of admin and your

[web2py] Re: Update python version in web2py 2.18.3

2019-03-07 Thread Константин Комков
I delete all errors in all projects and all sessions in all projects, then I stoped iis server, deleted web2py restart windows server install web2py again start iis server and in result have the same error. Also I add db = DAL('firebird://myrole:myp...@192.168.xxx.xxx/D:/DB/ABIT18.fdb', ignore_f

[web2py] Re: Update python version in web2py 2.18.3

2019-03-07 Thread Leonel Câmara
Humm this is clearly a pyDAL bug, please file an issue, it seems to be transforming one of the arguments to the firebird adapter's driver into unicode. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.googl

[web2py] compiled files location

2019-03-07 Thread icodk
I would expect a python application like web2py running with nginx, to generate compiled files like any other python application. However I can't see any byte compiled files under my application. Where are they ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - ht

[web2py] Re: Update python version in web2py 2.18.3

2019-03-07 Thread Константин Комков
I registrate issue but I don't sure that all right becouse it is new thing for me, also I want ask you about that problem . Are there any solution for pictures that size more 64kb? -- Resources: - http://

[web2py] Re: Update python version in web2py 2.18.3

2019-03-07 Thread Leonel Câmara
The DAL adapter for firebird needs to be changed to fix that 64KB problem. The thing here is that pydal supports a lot of different databases, for instance, I don't use or know firebird, I can't really fix firebird problems, hence why most of my contributions to pyDAL have been related to postg

[web2py] Re: Update python version in web2py 2.18.3

2019-03-07 Thread Константин Комков
Ok, 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 Google Groups "web2py-users" g

[web2py] PDF view and download with a proper name

2019-03-07 Thread mostwanted
I am following @rochacbruno's pdf view example here https://groups.google.com/forum/#!msg/web2py/tWG-GBN-Re0/vbrZOknlBgAJ . The code is as follows below, it works brilliantly but I wanna know how I can have the pdf displayed or downloaded with a proper name which i select as opposed to this *(

[web2py] Re: 2.18.3 blank logger message window. Mac users please chime in

2019-03-07 Thread Yi Liu
Further info: 1. This error is triggered whenever I access the admin login password interface. 2. I have a logger in a function. I have confirmed it is not the cause, since if I comment the whole function out, still get the same error. On Wednesday, March 6, 2019 at 7:09:28 PM UTC-8, Yi Liu wr

[web2py] Re: 2.18.3 blank logger message window. Mac users please chime in

2019-03-07 Thread Leonel Câmara
This is clearly a bug in web2py's messagebox handler as it could be trying to create a new TK mainloop while the previous one is not yet destroyed. TK only allows one mainloop. Try something for me and see if it works. add this to the beginning of gluon/messageboxhandler.py import threading

[web2py] How to create a nested json dictionary by loading data from a flat, parent-referencing list?

2019-03-07 Thread Alex Glaros
I'd like to use orgChart.js (https://github.com/dabeng/OrgChart/tree/master/demo) which expects properly formed json dictionaries, nested if there are dictionaries within dictionaries. But my data is in parent child record format. Is there a method for creating nested json that represents, f

[web2py] Re: compiled files location

2019-03-07 Thread Massimo Di Pierro
the web2py files gluon/*.py are compiled as you would expect and are in gluon/*.pyc but, unlike flask or django where the user code imports the framework, in web2py it is the framework that executes the user code (this allows running multiple apps under one web2py). When web2py executes the mo