[web2py] Re: SQLTABLE problem with 2.15.4

2017-11-19 Thread DaneW
I have now upgraded to 2.16.1 and everything is working including COUNT which now needs to be in uppercase. Many thanks for all your work on Web2py Leonel! On Thursday, 9 November 2017 12:41:49 UTC, Leonel Câmara wrote: > > I actually think that is also a bug because it is an inconsistency. For

[web2py] Re: Import application from staging to production server

2017-11-19 Thread Peter
I don't understand the 'local_import' in this line pygal = local_import('pygal') > > Can't find it in the documentation for web2py, pygal or searching python local_import... but pygal works for me using just... import pygal > -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: SSL certificate on web2py (aws ec2 + Nginx + uwsgi)

2017-11-19 Thread Daniel Dos Santos Guilhermino
HI Dave, Many thanks, I'll check acme solution too. best regards, Em sexta-feira, 17 de novembro de 2017 22:22:18 UTC-2, Dave S escreveu: > > > > On Friday, November 17, 2017 at 4:16:50 PM UTC-8, Daniel Dos Santos > Guilhermino wrote: >> >> Thanks Dave! >> >> I'll search about let's encrypt,

[web2py] Re: Web2py and machine learning - scikit-learn

2017-11-19 Thread Leonel Câmara
Depending on how you use matplotlib you may need to surround your calls with a lock section. -- 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] Re: JWT questions

2017-11-19 Thread Dave S
On Saturday, November 18, 2017 at 4:50:43 AM UTC-8, Anthony wrote: > > >> returned 1, 2, 3, 4, for the browser, and 1, 1, 1, 1, for my >> curl-JWT accesses. If I wait long enough, the token expires as expected >> (not very long for the default), but before it expires it acts like

[web2py] Re: list:string field length

2017-11-19 Thread Anthony
On Saturday, November 18, 2017 at 6:57:54 PM UTC-5, Donald McClymont wrote: > > Issue may be with SQLFORM rather than Pydal - if I have a list string > field in my case its called answers and put it in a SQLFORM then in > form.validate if you do > > print type(form.vars.answers) > > I get str

Re: [web2py] list:string field length

2017-11-19 Thread Anthony
On Sunday, November 19, 2017 at 10:39:27 AM UTC-5, Yoel Benitez Fonseca wrote: > > I don't mean to set the length, i just wanted to know the DAL behavior > behind the scene. So, DAL translate 'string:list' to a list in > databases that natively support lists and to a TEXT field on normal >

[web2py] Re: web2py 2.16.1 and python27

2017-11-19 Thread Anthony
> > web2py application made with python 2.7 will be compatible? > web2py does not take Python 2.7 code and make it run under Python 3 -- it simply allows an app written in Python 3 to run under Python 3. If you've got Python 2.7 app, you'll need to convert it to Python 3 yourself before you

[web2py] web2py 2.16.1 and python27

2017-11-19 Thread Andrea Fae'
What version of python 3 can I use with 2.16.1 version? How to upgrade python? web2py application made with python 2.7 will be compatible? thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] list:string field length

2017-11-19 Thread Yoel Benitez Fonseca
I don't mean to set the length, i just wanted to know the DAL behavior behind the scene. So, DAL translate 'string:list' to a list in databases that natively support lists and to a TEXT field on normal relational databases and hence set the length of the text field to the default ? 2017-11-17

[web2py] Re: Web2py and machine learning - scikit-learn

2017-11-19 Thread GIsaac
Thanks for your response! I've imported the libraries I was planning on using, however I noticed that Matplotlib doesn't seem to want to play nicely with Web2Py. If I try to produce a plot of my data set and open the web app, Web2Py will stop responding. Is this a known issue? Perhaps I have

[web2py] Re: Getting wrong Results with my grading system

2017-11-19 Thread mostwanted
WOOOW!!! Thank you Jose i have been switching the signs, i have been using *> *as small than and *< *as greater than,i do not know when all this information got mixed up in my head but it took your words to pay close attention & realize my error. Thank you. *And honestly its not an

[web2py] Re: Getting wrong Results with my grading system

2017-11-19 Thread Jose C
This is starting to look like a homework assignment. You do not seem to understand what the >= (greater than or equal to) means. The python statement: if perc >=100: grade='A' elif perc >= 79: grade='B' ... means or reads as (in English): if the value in 'perc' is greater than or equal to

[web2py] Re: Getting wrong Results with my grading system

2017-11-19 Thread 黄祥
think the answer is right in front of you (just a matter of conditional logic): What i want is to reflect an a 'A' if a student gets anything between 100% and 80%, hence the line if perc>=100: grade='A' *pls try (not tested):* if perc>=80 and perc<=100: grade='A' and get grade 'B' if a student