[web2py] Re: SQLFORM.FACTORY editing a document. Save reports no upload files

2016-11-21 Thread Kenwyn Pilgrim
I too have this issue with using SQLFORM.factory to edit. My model looks like: db.define_table('upload_file', Field('doc_type', 'reference document_type', required=True, label=T('Type')), Field('pdf_name', 'upload', label=T('PDF Document'),

[web2py] Re: SQLFORM.FACTORY editing a document. Save reports no upload files

2016-12-01 Thread Kenwyn Pilgrim
; else T('Update Queue') >form = SQLFORM(db.upload_file, >request.args(0,cast=int,default=0), > upload=URL('download'), > submit_button=button).process() > > > On Mo

[web2py] Re: SQLFORM.FACTORY editing a document. Save reports no upload files

2016-12-08 Thread Kenwyn Pilgrim
load')).process() > > and then if form.accepted: > > request.vars.myfile.file.seek(0) > data = request.vars.myfile.file.read() > > > > > On Thursday, 1 December 2016 09:15:25 UTC-6, Kenwyn Pilgrim wrote: >> >> Massimo >> >> Thanks. This works. Just 2 fo

[web2py] Sending the ID of the newly registered user in email message (auth.messages.verify_email)

2014-06-24 Thread Kenwyn Pilgrim
Hi I'm trying to send the *id* of the newly registered user in the string *auth.messages.verify_email*. I've tried *%(id)s* but immediately get a ticket. 'id' When initializing the string *auth.messages.verify_email*, I've been able to use other place holders, such as *%(first_name)s*, *%(las

[web2py] Re: Sending the ID of the newly registered user in email message (auth.messages.verify_email)

2014-06-28 Thread Kenwyn Pilgrim
On Tuesday, June 24, 2014 6:08:48 PM UTC-5, Kenwyn Pilgrim wrote: > > Hi > I'm trying to send the *id* of the newly registered user in the string > *auth.messages.verify_email*. I've tried *%(id)s* but immediately get a > ticket. > > '

[web2py] Re: Sending the ID of the newly registered user in email message (auth.messages.verify_email)

2014-07-01 Thread Kenwyn Pilgrim
e right. %(id)s should be allowed. > > On Wednesday, 25 June 2014 10:49:54 UTC-5, Massimo Di Pierro wrote: >> >> from the code gluon/tools.py >> >> d.update(dict(key=key, link=link,username=form.vars[username])) >> >> >> On Tuesday, 24 June 2014 18:0

[web2py] Using Selectable option in SQLFORM.grid causes grid to shrink

2014-07-13 Thread Kenwyn Pilgrim
Hi The *selectable* option works as expected, except that my grid *shrinks *from taking up the entire width of the screen to shrinking to something less than half the original width. This behaviour is seen in Chrome, Firefox & Opera. Once I remove the selectable option, the grid goes back to its