[web2py] Re: Folder sessions

2019-02-04 Thread Константин Комков
I tried like that: [image: 323.png] Arguments: python c:\XXX\X\web2py.py -S stud -M -R c:\XXX\X\scripts\sessions2trash.py -A -o -x 3600 -f -v I think something wrong in arguments becouse it don't work. Thank you *Stifan*, *Dave S!* -- Resources: - http://web2py.com -

[web2py] DAL limitby in python3

2019-02-04 Thread Maurice Waka
In python 2.7, I was able to set the limit of the last number of rows to be displayed except the exact last one as: results = db(db.answer.author == auth.user.id).select(db.answer.ALL)[-10:-1] But after switching to python 3.6, i keep getting this error: File

[web2py] Web2py with python3: difference in error reporting

2019-02-04 Thread 'Yan Wong' via web2py-users
I'm contemplating switching my web2py site to python3. However, when I do so, the error messages logged to applications/myapp/errors, to which I'm directed if I have made a web2py python coding error, seem a lot less useful, for instance they don't seem to give sensible line numbers into my

[web2py] Re: how do I Select in a FORM using a database.

2019-02-04 Thread Dave S
On Monday, February 4, 2019 at 9:32:02 AM UTC-8, Ben Duncan wrote: > > Ok, I have a standard FORM doing a web page. > How do you do a select from a a database table in a FORM helper: > > ie what is equivalent to the sqlform.factory of: > > Field('companyid', > >

[web2py] Re: Folder sessions

2019-02-04 Thread Dave S
On Monday, February 4, 2019 at 4:52:51 AM UTC-8, 黄祥 wrote: > > from the book: > >- *sessions* store information related to each particular user. > > *ref*: > http://web2py.com/books/default/chapter/29/04/the-core#Applications > > think you can clear that folder (remove it folders or files or

[web2py] Re: what is the best practice for importing modules in a module?

2019-02-04 Thread Yi Liu
I agree. I am considering switch to pyGal. And Plotly is the only online plotting service though. Other options you have to serve your own plots. On Monday, February 4, 2019 at 8:51:43 AM UTC-8, Leonel Câmara wrote: > > To be honest I think this is bad enough of a problem that I would simply

[web2py] how do I Select in a FORM using a database.

2019-02-04 Thread Ben Duncan
Ok, I have a standard FORM doing a web page. How do you do a select from a a database table in a FORM helper: ie what is equivalent to the sqlform.factory of: Field('companyid', requires=IS_IN_DB(db,db.company.company_number,'%(company_name)s')), Thanks *Ben Duncan* DBA / Chief Software

[web2py] Re: what is the best practice for importing modules in a module?

2019-02-04 Thread Leonel Câmara
To be honest I think this is bad enough of a problem that I would simply stop using plotly. This is ridiculously slow and there many many alternatives in the python worl.d -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] Re: what is the best practice for importing modules in a module?

2019-02-04 Thread Yi Liu
Yes, Anthony. Thanks for taking the efforts to look up poorly issue. I also found the same github thread. It took almost 7 seconds on my server to import plotly in a regular Python console, so it IS the very and only bottleneck! After all, if I am not supposed to import them, what is the best

[web2py] Re: what is the best practice for importing modules in a module?

2019-02-04 Thread Anthony
On Monday, February 4, 2019 at 12:58:58 AM UTC-5, Yi Liu wrote: > > Thank you for your reply, Dave. If I understand you correctly, I already > did what you suggested: move those imports into a module file. It did not > help. > The problem is that you moved the imports to a module, but then you

[web2py] Bootstrap tooltips require tether

2019-02-04 Thread Константин Комков
I use web2py 2.17.2-stable+timestamp.2018.10.06.18.54.02. I created new welcom app and included my css dtyles with Bootstrap v4.0.0-beta. Then I created ajax request and have had error: Uncaught Error: Bootstrap tooltips require Tether. This problem can be solved if include > src="

[web2py] Re: Folder sessions

2019-02-04 Thread 黄祥
from the book: - *sessions* store information related to each particular user. *ref*: http://web2py.com/books/default/chapter/29/04/the-core#Applications think you can clear that folder (remove it folders or files or through web2py admin (clean up), but pls ensure that noone is using it

[web2py] Folder sessions

2019-02-04 Thread Константин Комков
Hello! [image: 212.png] Can somebody tell about folder with name sessions in project. In my case that folder have many enclosed folders. Can I clear that folder? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: work with JSON string

2019-02-04 Thread Константин Комков
Dave S, I parsed that JSON string in Python and didn't have error. As I think problem is in next string: > data: 'data='+JSON.stringify(data), but I don't know how to see data in that moment. Now I solve it changing (;) symbol. > var transfotmStr =

Re: [web2py] Re: problem with cpdb.py "EXCEPTION: could not set DAL"

2019-02-04 Thread Jon Subscripted
Hi Dave, Yes, if you refer to the Python installed in the computer I'm using Python 2.7.5. C:\Users\Jon\Downloads\web2py_winAPPLIANCES\web2py>python scripts/cpdb.py -f applications/paravolcar10enero_tarde/databases -y sqlite://storage.sqlite -Y sqlite://storage3.sqlite -d ../gluon No handlers