[web2py] Re: 2.18.1 is OUT

2019-02-24 Thread Leonel Câmara
Great job everyone. If you're getting your web2py directly from git remember to run "git submodule update --init --recursive" again to get the new yatl submodule. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] off topic - npm for visualization dependencies and set up

2019-02-24 Thread Alex Glaros
Need someone to clarify fundamental concepts. Looking at some visualization tools such as orgChart.js (https://github.com/dabeng?tab=overview=2019-01-01=2019-01-31), requirements include npm installed (and gulp build). I don't how npm works. If I want orgChart to work on my pythonAnywhere

[web2py] Re: off topic - npm for visualization dependencies and set up

2019-02-24 Thread 黄祥
in your local desktop - first you need to have nodejs installed either from distro repo or from official site (https://nodejs.org/en/download/) - then just follow the step according to what written on that github - make your code (orgchart.js) inside web2py app mine is under :

[web2py] Re: 2.18.1 is OUT

2019-02-24 Thread 黄祥
perhaps you should use web2py source then install reportlab manually ref: https://www.reportlab.com/opensource/installation best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: 2.18.1 is OUT

2019-02-24 Thread Rahul
Hi Alex, I got the same reportlab platypus import error on my machine only when I installed PIL package over existing reportlab installation. To rectify this I had to remove PIL from my VPS (Debian) also reportlab and then reinstall pillow (PIL fork) and reportlab again to fix this

[web2py] Re: 2.18.1 is OUT

2019-02-24 Thread Alex Glaros
am on Windows -- 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"

[web2py] Re: creating a db table doesn't actually create a table (sqllite)

2019-02-24 Thread Massimo Di Pierro
How do you know the table has not been created? Do you have database/*.table files? If this is a new app and you are sure the tables are not created, try delete those files. On Sunday, 24 February 2019 15:58:20 UTC-8, Vlad wrote: > > When I define a table in db.py - it's just fine. But if I

[web2py] Re: customizing submit button in SQLFORM() - works partially

2019-02-24 Thread Massimo Di Pierro
Try reduce the scope of the JS form = SQLFORM(db.inquiry, submit_button = 'Explore', _class="myform").process() and use var button = jQuery('.myform input[type=submit]'); On Sunday, 24 February 2019 16:53:08 UTC-8, Vlad wrote: > > I have the following line in the controller: > > form =

Re: [web2py] Re: Xml use in python 3.6

2019-02-24 Thread Massimo Di Pierro
Very strange. Will check asap. On Sunday, 24 February 2019 16:57:07 UTC-8, Lovedie JC wrote: > > I tried with the new updated web2py 2.18 but still get the same issue. > Any help as to how to use xml here (also with yatl)? > Regards > > On Thu, 21 Feb 2019 at 10:55, Massimo Di Pierro < >

Re: [web2py] Re: Xml use in python 3.6

2019-02-24 Thread Lovedie JC
I tried with the new updated web2py 2.18 but still get the same issue. Any help as to how to use xml here (also with yatl)? Regards On Thu, 21 Feb 2019 at 10:55, Massimo Di Pierro wrote: > The issue is fixed in https://github.com/web2py/yatl and it will go away > in web2py as soon as we switch

[web2py] Re: 2.18.1 is OUT

2019-02-24 Thread Alex Glaros
in default.py: from reportlab.platypus import * produces the following error: (ImportError('No module named reportlab.platypus',), )Version web2py™ Version 2.18.1-stable+timestamp.2019.02.24.06.24.15Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. Traceback (most recent call last): File

[web2py] customizing submit button in SQLFORM() - works partially

2019-02-24 Thread Vlad
I have the following line in the controller: form = SQLFORM(db.inquiry, submit_button = 'Explore').process() the view has the following: {{=form}} $('input:submit[value=Explore]').attr('style', "'width:400px; max-width:100%;'");

[web2py] Custom Delimiters Broken in 2.18.1?

2019-02-24 Thread Limedrop
Hi there, I think the custom template delimiters are broken in 2.18.1. Here's my test code and the exception I'm getting: CONTROLLER def index(): response.delimiters = ('') return dict(message=T('Welcome!')) VIEW - index.html {{extend 'layout.html'}} Note that each column

[web2py] Re: Problem Pickling Session

2019-02-24 Thread Leonel Câmara
I used to have this error when I used Apache, my solution was simply to stop using apache, just use nginx and uwsgi and the problem just goes away. Alternatively you can clear your cookies or use a private browser window to access the app via https. -- Resources: - http://web2py.com -

[web2py] creating a db table doesn't actually create a table (sqllite)

2019-02-24 Thread Vlad
When I define a table in db.py - it's just fine. But if I create a new file - the admin interface picks it up, i.e. tells me that this model is creating the table, but the table is not actually created. What would cause such a difference?? It's really strange, as in other projects I define

[web2py] Re: 2.18.1 is OUT

2019-02-24 Thread 黄祥
$ uname Darwin $ python -V Python 3.7.2 Traceback (most recent call last): File "/Users/sugizo/project/python/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File "/Users/sugizo/project/python/web2py/applications/test/models/db_schema_0_auth.py", line 9,

[web2py] Re: Custom Delimiters Broken in 2.18.1?

2019-02-24 Thread Massimo Di Pierro
Damn you are right. I am releasing 2.18.2 with a fix. On Sunday, 24 February 2019 18:31:27 UTC-8, Limedrop wrote: > > > Hi there, > > I think the custom template delimiters are broken in 2.18.1. Here's my > test code and the exception I'm getting: > > > CONTROLLER > def index(): >

Re: [web2py] Re: 2.18.1 is OUT

2019-02-24 Thread Lovedie JC
Having trouble with download page: See attached. On Mon, 25 Feb 2019 at 07:57, Alex Glaros wrote: > am on Windows > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > -