[web2py] create an EML-File for download

2018-10-19 Thread Oli
Hi everyone, Greetings! I have a question. How is it possible to save and download an E-Mail as EML-File instead of send it? # email mail.send ( to = sendto, subject = 'Userinformation', reply_to = email, attachments = [mail.Attachment(Headerbild, content_id='H

Re: [web2py] My SQLFORM() is not saving anything after putting my APP online

2018-10-19 Thread sandeep patel
Try this def index(): form=SQLFORM(db.vehicleLogging) if form.process().accepted: response.flash = T("Record Made") elif form.errors: response.flash = T('Error') return locals() In *form.process().**accepted *does not need request.vars and session arguments. Best/

[web2py] My SQLFORM() is not saving anything after putting my APP online

2018-10-19 Thread mostwanted
Before taking my application online i was able to save information via my SQLFORM(db.logs) but after putting it online It does not save anything! *This is the controller code:* def index(): form=SQLFORM(db.vehicleLogging) if form.accepts(request.vars, session): response.flash = T(