Re: [web2py] Re: Unable to display dropdown lists in forms

2018-12-05 Thread Arindam Dasgupta
@ Sandeep : Thank you so much for the much needed help. My code is atleast up and running now!! Regards, Arindam On Wed, Dec 5, 2018 at 12:10 PM Arindam Dasgupta wrote: > @ sandeep : your solution works for me but the problem is that I cammot > style the elements added later using general css r

[web2py] ValueError when deleting row object

2018-12-05 Thread Maurice Waka
I'm trying to delete a certain row among others with this code: @auth.requires_login() def Daily_Calorie_Calculator(): diary_date = None result_breakfast = [] result_lunch = [] result_dinner = [] result_snack = [] calories_sum = 0 protein_sum = 0 fat_sum = 0 carb

[web2py] Re: SQLFORM.smartgrid exportclasses

2018-12-05 Thread Tomasz Wrona
Maybe this information will help you. If you use SQLFORM.grid it will work. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message bec

[web2py] Re: creating report using xhtml2pdf

2018-12-05 Thread Manuele Pesenti
We have found a simple solution... this code do the trick: {{ import xhtml2pdf.pisa as pisa filename = '%s/%s.html' % (request.controller,request.function) html = response.render(filename) pdf = pisa.CreatePDF(html, dest = response.body) }} We hope to be of any help to other people with the sam

[web2py] creating report using xhtml2pdf

2018-12-05 Thread Manuele Pesenti
Hi! we are trying to build up printable report from a view. We'd like to use xhtml2pdf instead using the web2py embedded library fpdf. How the view template file should look like? Essentially we tried something like the following without success: {{ from xhtml2pdf import pisa from StringIO im