Re: [web2py] Re: Cookbook found bug with web2py

2012-03-15 Thread Bruce Wade
Ok thanks I will try that, just looking for the easiest solution because we need to generate a lot of invoices. On Thu, Mar 15, 2012 at 4:57 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I remind you that web2py comes with markmin2pdf too. It should work with > most utf8 characters

Re: [web2py] Re: Cookbook found bug with web2py

2012-03-15 Thread Massimo Di Pierro
I remind you that web2py comes with markmin2pdf too. It should work with most utf8 characters. On Thursday, 15 March 2012 17:52:24 UTC-5, Detectedstealth wrote: > > Thanks I will have to look into it, or possibly just use reportlab. > > On Thu, Mar 15, 2012 at 2:17 PM, Alan Etkin wrote: > >> I

Re: [web2py] Re: Cookbook found bug with web2py

2012-03-15 Thread Bruce Wade
Thanks I will have to look into it, or possibly just use reportlab. On Thu, Mar 15, 2012 at 2:17 PM, Alan Etkin wrote: > I belive Chinese is not ported to pypdf (the php software supported it > via a special class). AFAIK the chinese fonts BIG5 or GB must be > installed in the server. Maybe you

[web2py] Re: Cookbook found bug with web2py

2012-03-15 Thread Alan Etkin
I belive Chinese is not ported to pypdf (the php software supported it via a special class). AFAIK the chinese fonts BIG5 or GB must be installed in the server. Maybe you could start an issue for adding it in the project page. http://code.google.com/p/pyfpdf/ On 15 mar, 17:53, Bruce Wade wrote:

Re: [web2py] Re: Cookbook found bug with web2py

2012-03-15 Thread Bruce Wade
Does pyfpdf support Chinese yet? I tried using Chinese by the characters were not rendered in Chinese. Or do I need to set some kind of font. On Thu, Mar 15, 2012 at 1:35 PM, Alan Etkin wrote: > That error page is likely to be sent because of the new generic view > security rule. I'm using the r

[web2py] Re: Cookbook found bug with web2py

2012-03-15 Thread Alan Etkin
That error page is likely to be sent because of the new generic view security rule. I'm using the response.generic_patterns = ["*",] in the controller file and it works well (the sentence wasn't included in the original file). On 15 mar, 17:15, Bruce Wade wrote: > Okay so the downloaded code the

Re: [web2py] Re: Cookbook found bug with web2py

2012-03-15 Thread Bruce Wade
Okay so the downloaded code the pdf works but the normal HTML view doesn't. invalid view (default/report.html) On Thu, Mar 15, 2012 at 11:48 AM, Alan Etkin wrote: > I should check the code in the book, but I used a controller example > that should be available in the book's support files at > ht

[web2py] Re: Cookbook found bug with web2py

2012-03-15 Thread Alan Etkin
I should check the code in the book, but I used a controller example that should be available in the book's support files at http://www.packtpub.com/support and it worked for my environment: Python 2.6.5 Mandriva GNU/Linux 2010 web2py (last mercurial version) A complete working installer can be d

Re: [web2py] Re: Cookbook found bug with web2py

2012-03-15 Thread Bruce Wade
Fresh blank version of web2py, in default controller: def report(): import os response.title = "web2py sample report" # include a chart from google chart url = " http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=500x200&ch1=Hello|World&.png " chart = IMG(_src=url, _wid

Re: [web2py] Re: Cookbook found bug with web2py

2012-03-15 Thread Bruce Wade
Install what app? I am following the instructions to create a PDF. On Thu, Mar 15, 2012 at 10:47 AM, Alan Etkin wrote: > How are you running the code? Did you install the app from the apps > folder? > > On Mar 15, 2:29 pm, Bruce Wade wrote: > > Chapter 10: Creating PDF reports > > > > Error: >

[web2py] Re: Cookbook found bug with web2py

2012-03-15 Thread Alan Etkin
How are you running the code? Did you install the app from the apps folder? On Mar 15, 2:29 pm, Bruce Wade wrote: > Chapter 10: Creating PDF reports > > Error: > > Traceback (most recent call last): >   File > "/home/bruce/Development/bossteam_dev/projects/yaw_dev/gluon/restricted.py", > line 20