[web2py] Re: Download link for dynamic upload folder

2018-02-02 Thread David Orme
So at the moment, what users are seeing is a controller presenting SQLFORM.grid of dataset records, and then in the 'view' argument to that controller for a particular record, the file field is shown as the output of the represent method of UploadWidget (so the word 'file' wrapped up with the d

Re: [web2py] Re: auth.messages.verify_email html template

2018-02-02 Thread Yi Liu
Thanks for sharing. I really hope web2py can officially update the native function to allow modern html email for verification. I understand the contributors have priorities. Yi On Saturday, November 22, 2014 at 5:56:06 AM UTC-8, Lisandro wrote: > > Hi Jay Martin. Actually, I ended up coding my

[web2py] Re: Download link for dynamic upload folder

2018-02-02 Thread Anthony
On Friday, February 2, 2018 at 5:04:26 PM UTC-5, David Orme wrote: > > Hi, > > I'm collecting dataset files from users. There can be several versions as > problems with the files get fixed and I want to organise the uploaded files > by their common dataset id. So in my controller I do this: > > #

[web2py] Download link for dynamic upload folder

2018-02-02 Thread David Orme
Hi, I'm collecting dataset files from users. There can be several versions as problems with the files get fixed and I want to organise the uploaded files by their common dataset id. So in my controller I do this: # set the upload directory locally upload_dir = os.path.join(request.folder, 'uplo

[web2py] Re: SQLFORM - update record, save datetime to table field

2018-02-02 Thread 黄祥
think you can use grid parameter onupdate, then assign the request.now as the value ref: http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-grid best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web

[web2py] How to activate google analytics

2018-02-02 Thread Manuele Pesenti
Dear all, is it indeed sill a good and updated choice to setup the variable response.google_analytics_id (in menu.py) in order to activate GA[1]? I mean reading the offical GA documentation[2] it seams that GA is activated with such different js code and I was thinking if would be a better cho

[web2py] SQLFORM - update record, save datetime to table field

2018-02-02 Thread Omicron VT
I have a db table with a datetime field to save last update/creation date. Field('fecha_update', 'datetime', default=request.now) My question is : How i can save the update time of a record when i do it through sqlform.grid ? -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] Re: appadmin.py interpret represent differently than default.py, causing keyError or attributeError

2018-02-02 Thread Yi Liu
Thank you so much for your detailed explanation. You also solved my puzzle about the behavior of join tables. Amazing that you know I have join tables in default.py when I didn’t say it. Lol. Really appreciate your help. -- Resources: - http://web2py.com - http://web2py.com/book (Documentatio

[web2py] Re: IMPORTANT - WEB2PY CONSULTING

2018-02-02 Thread David Zejda
Hi, If you can, please list Open-IT cz, s.r.o. (Czech Republic) as well. Main website is https://www.o-it.info made in Zope. Though it should be replaced with something fresher. But, IMO, it is not as ugly that it could not be listed.. We have a plenty of web2py-based projects, such as: http

[web2py] web2py behind Apache with virtualhosts and SSL (SNI) leads to SSL_ERROR_RX_RECORD_TOO_LONG

2018-02-02 Thread David Zejda
Hi :) I am having troubles with web2py behind Apache with multiple SSL virtualhosts, each serving different web2py application and encrypted with a different letsencrypt SSL key. All are served from the same IP address. I have only one web2py instance in my setup. If I set-up up to 3 VirtualHos

[web2py] Switching database backend from sqlite to mysql

2018-02-02 Thread jburker
I currently have a mysql database that is defined using pydal and used by several other applications. I am trying to use Web2py to create an interface with the existing database. For testing I mirrored the schema of the database using sqlite and now that the project is ready I want to connect

[web2py] Re: appadmin.py interpret represent differently than default.py, causing keyError or attributeError

2018-02-02 Thread Anthony
On Thursday, February 1, 2018 at 11:23:41 PM UTC-5, Yi Liu wrote: > > I figured a work around: > > ``` > if request.controller == 'default': > ctID = ctID.t_trial.f_ctid > else: > ctID = ctID.f_ctid > ``` > > It would be nice to fix from the source. > There is nothing to be don

[web2py] xml namespaces

2018-02-02 Thread Yebach
Hello Although not so much web2py question and more Python. I am struggling with creating some xmls - more specific namespaces. I would really appreciate it if smbd could help me with this I am trying to get all the namespaces together., but somehow they are not named or declared properly, eve

[web2py] Re: how to pass user input into url

2018-02-02 Thread Ntogg
thanks On Friday, January 19, 2018 at 4:34:57 PM UTC+8, Dave S wrote: > > > > On Tuesday, January 2, 2018 at 8:43:54 AM UTC-8, Ntogg wrote: >> >> I want to show the user their home address on the google map api that i >> am using. When the user inputs their address and clicks "submit", I want >