[web2py] Re: I don't understand this error, anyone to help ?

2010-12-29 Thread Arun K.Rajeevan
where is the attachment pdf?

[web2py] Re: I don't understand this error, anyone to help ?

2010-12-29 Thread mdipierro
Probably it is counting data.encode('utf8', 'xmlcharrefreplace') data as self and 'utf8' as second argument. yet it is strange because this is valid syntax. On Dec 29, 3:08 pm, Jonathan Lundell wrote: > On Dec 29, 2010, at 12:37 PM, Arun K.Rajeevan wrote: > > > > > great as far as 25 page pdf

Re: [web2py] Re: I don't understand this error, anyone to help ?

2010-12-29 Thread Arun K.Rajeevan
great as far as 25 page pdf is in consideration. next time a simple text file is good enough. how the page get rendered? using generic.html or is it have a custom view file? And what's the controller returns? btw which version of web2py you are using? --

Re: [web2py] Re: I don't understand this error, anyone to help ?

2010-12-29 Thread Stef Mientki
On 29-12-2010 21:37, Arun K.Rajeevan wrote: > great as far as 25 page pdf is in consideration. next time a simple text file > is good enough. sorry about the large file, but I thought to give as much information as possible > how the page get rendered? Mozilla printing to pdf > using generic.html

Re: [web2py] Re: I don't understand this error, anyone to help ?

2010-12-29 Thread Arun K.Rajeevan
problem seems to be with encoding data. Can you show us relevant code that defines and initialize Books!

Re: [web2py] Re: I don't understand this error, anyone to help ?

2010-12-29 Thread Jonathan Lundell
On Dec 29, 2010, at 12:37 PM, Arun K.Rajeevan wrote: > great as far as 25 page pdf is in consideration. next time a simple text file > is good enough. > how the page get rendered? using generic.html or is it have a custom view > file? > And what's the controller returns? > > btw which version of

Re: [web2py] Re: I don't understand this error, anyone to help ?

2010-12-29 Thread Jonathan Lundell
On Dec 29, 2010, at 1:35 PM, mdipierro wrote: > > Probably it is counting > > data.encode('utf8', 'xmlcharrefreplace') > > data as self and 'utf8' as second argument. yet it is strange because > this is valid syntax. That occurred to me, too, but that's not what's happening. See my test sequenc

Re: [web2py] Re: I don't understand this error, anyone to help ?

2010-12-29 Thread Stef Mientki
thanks very much guys, but probably you missed the solution I posted about an hour ago: strings are of type cheers Stef On 29-12-2010 22:51, Jonathan Lundell wrote: > On Dec 29, 2010, at 1:35 PM, mdipierro wrote: >> Probably it is counting >> >> data.encode('utf8', 'xmlcharrefreplace') >> >> d