[web2py] Re: Can't understand this error in gluon/rewrite.py

2018-09-06 Thread Lisandro
I've modified gluon/rewrite.py to log functions and controllers: if self.args: try: mylog = open('mylog.txt', 'a') mylog.write('%s %s\n' % (self.functions, self.controllers)) mylog.close() except: pass if self.args[0] in self.functions or self.args[0] in

[web2py] Setting filename to a streamed file

2018-09-06 Thread Simona Chovancová
Hello. I have a backend function that is supposed to stream a pdf file, but not instantly download it. It's being called like this .../function_to_create_pdf/323, where the number is some ID. I create a FPDF stream and make function return this response.headers['Content-Type'] = None return resp

[web2py] Re: Spreadsheet.py documentation and status

2018-09-06 Thread Yann Dulondel
Hi I had a look on w2ui and look good but don't have any idea on how to use it with w2py. I'm a client-server dev. This a new world for me. If you have any clue, it would be really good Thanks Yann -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web