[web2py] Re: Web3py

2019-05-29 Thread Massimo Di Pierro
fixed. see the readme file On Tuesday, 28 May 2019 00:41:51 UTC-7, 黄祥 wrote: > > *problem* > can't run it on background because of password required > *e.g. * > ./web3py-start apps -a 0.0.0.0: & > > perhaps can add parameter for password like web2py during start web3py > *e.g.* > python

[web2py] CSV Dowload

2019-05-29 Thread Quang Lam
Hi, i have a problem to display the CSV file stored in the table. the code below is in controller def view_performance(): files = db.Pass_Configuration(request.args(0, cast=int)) or redirect(URL('index')) // get the ID of Pass_Configuration table form the URL return

[web2py] Re: Web3py

2019-05-29 Thread 黄祥
test so far so good in latest commits (138) using docker (ubuntu n debian), a few error during test auth which i know is still work in progress or prefer to report the error traceback too ? *steps* docker pull ubuntu docker run -it --privileged ubuntu /bin/bash apt update apt install -y git

Re: [web2py] Re: How can I generate hash for user password like web2py

2019-05-29 Thread Константин Комков
I need to generate password and print it for entrant and then take hash from password for writing to database. But that program work on Windows and was written by delphi. Last versions delphi have sha512 and pbkdf2 library but not our. Can you take link by .dll file of the library for use it in

[web2py] Re: CSV Dowload

2019-05-29 Thread Dave S
On Tuesday, May 28, 2019 at 11:00:42 PM UTC-7, Quang Lam wrote: > > Hi, i have a problem to display the CSV file stored in the table. > > the code below is in controller > > def view_performance(): > files = db.Pass_Configuration(request.args(0, cast=int)) or > redirect(URL('index')) //

Re: [web2py] Re: A little suggestion: Create a forum for web3py

2019-05-29 Thread António Ramos
Do we need to reinvent the wheel again ? why not use for ex... https://slack.com or many others out there? Em sex, 24 de mai de 2019 às 21:41, Dave S escreveu: > > > On Friday, May 24, 2019 at 10:14:24 AM UTC-7, Ari Lion BR Sp wrote: >> >> In this while, please join us on our Telegram

[web2py] Re: CSV Dowload

2019-05-29 Thread Quang Lam
Hi Dave Could you please show me more detail in code since i need to download the CSV file store in the table? On Tuesday, May 28, 2019 at 11:00:42 PM UTC-7, Quang Lam wrote: > > Hi, i have a problem to display the CSV file stored in the table. > > the code below is in controller > > def

[web2py] CSV file download

2019-05-29 Thread Quang Lam
Hi i would like to download the CSV file store in the table but i have problem with download the code below is in the control, it gets the id from the URL and use SQLFORM.Grid to display. in the performance file column, there is a file link to download performance file but when i click on the

[web2py] Re: CSV Dowload

2019-05-29 Thread 黄祥
ref: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Exporting-and-importing-data best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] OperationalError: no such table: contacts

2019-05-29 Thread karthikeyan p
i am running my web2py app in pythonanywhere.com ( cloud machine ) i have configured git in my *welcome* folder . i have not initalised .ignore file to avoid anything like database , errors , sessions ,uploads . so when i like to backup my app in pythonanywhere , i just used -> git add . -> git

[web2py] Re: CSV Dowload

2019-05-29 Thread Dave S
On Wednesday, May 29, 2019 at 10:15:49 AM UTC-7, Quang Lam wrote: > > Hi Dave > > Could you please show me more detail in code since i need to download the > CSV file store in the table? > Look at appadmin.py around line 5824. The file is in yourapp/controllers. Basically: get query

Re: [web2py] Re: CSV Dowload

2019-05-29 Thread Quang Lam
Hi Dave, yeah, i changed to grid since it has the download function, but when i click on it, it navigates me to the next page with the name of file in URL and 404 not found. do you know how to fix this problem? you can see my code in detail in the other post named CVS file download. Thanks On

Re: [web2py] Re: CSV Dowload

2019-05-29 Thread 黄祥
for download all tables at once try: import StringIO except ImportError: from io import StringIO def download_csv(): stream = StringIO.StringIO() db.export_to_csv_file(stream, delimiter = ',', quotechar = '"',

Re: [web2py] Re: CSV Dowload

2019-05-29 Thread Quang Lam
Hi Steve, i did not mean to download all table, i just want to download the csv file stored in PerformanceFile. db.define_table( 'Pass_Configuration', Field('PassID', 'reference Pass', label=T('Pass'), requires=IS_NOT_EMPTY()),

Re: [web2py] Re: CSV Dowload

2019-05-29 Thread Quang Lam
Hi Steve, the code mentioned in the book is only for export to CVS file. my situation is to download the CVS file stored in the table On Wed, May 29, 2019 at 12:01 PM 黄祥 wrote: > ref: > > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Exporting-and-importing-data >

[web2py] Re: CSV Dowload

2019-05-29 Thread Dave S
On Wednesday, May 29, 2019 at 1:07:21 PM UTC-7, Dave S wrote: > > [...] > > You may not want the 'Content-disposition' header -- it's setting > attachment and filename. > > [...] > But CSV is an ugly thing to show to a user; if the user needs query > results in a table, then either SQLTABLE

Re: [web2py] Re: A little suggestion: Create a forum for web3py

2019-05-29 Thread Carlos Costa
I don't agree this is reinvent the wheel. Maybe Slack is reinventing the wheel. Reinvent the wheel, from the Cambridge dictionary: > to waste time trying to create something that someone else has already > created We are having a good experience with chat support on telegram group. There is

[web2py] Re: How can I generate hash for user password like web2py

2019-05-29 Thread João Matos
I use Python's hashlib module. It contains pbkdf2. segunda-feira, 27 de Maio de 2019 às 12:13:54 UTC+1, Константин Комков escreveu: > > Can somebody told about free library for windows (.dll) which can generate > hash of password like web2py (pbkdf2 + sha512)? > -- Resources: -

[web2py] Re: https and apache

2019-05-29 Thread João Matos
Do you have an error? quarta-feira, 15 de Maio de 2019 às 06:29:02 UTC+1, Cris Fad escreveu: > > Dear all, > > I have problems to access web2py on apache throught https. I run > setup-web2py-ubuntu.sh, in the folder web2py/scripts and while the http is > responding correctly the https is not.

[web2py] Re: https and apache

2019-05-29 Thread Dave S
On Wednesday, May 29, 2019 at 3:10:36 PM UTC-7, João Matos wrote: > > Do you have an error? > > Perhaps a snippet from the Apache logs. But if this is a new installation, Nginx has much advantage. Also, if admin access is being tried from a system other than the server, SSL tunneling might be

Re: [web2py] Re: How can I generate hash for user password like web2py

2019-05-29 Thread Carlos Costa
If you can use web2py itself for this task, dot it like this: hash = CRYPT()('text to hash')[0] Em qua, 29 de mai de 2019 às 19:05, João Matos escreveu: > I use Python's hashlib module. It contains pbkdf2. > > segunda-feira, 27 de Maio de 2019 às 12:13:54 UTC+1, Константин Комков > escreveu: >>

[web2py] Include javascript file in layout.html

2019-05-29 Thread Omicron VT
I am trying to include Tabulator JS in layout.html but i can not make it work. If I include the files in the head section of view it works OK. But if I include them on the head section of layout.html and then in view i use extend 'layout.html' it can not find it. In sure is me, but i can not