Hi Mariano,
The patches are for the pyfpdf web2py sample app, (I'm not seeing that in
the main pyfpdf src, but I might have missed it).
Yes, I seemed to need a few additional 'pass' statements to avoid the view
complaining. I may have been over zealous :-)
In terms of style, I was following
Hello Mark:
Thanks for the patch!
This fix is for the wiki page or the code itself?
Could you create a new issue in the project site?
https://code.google.com/p/pyfpdf/issues/list
Or do you want to edit the page directly (I can give you the needed
permisions)
Even better, for the soure code, yo
Ok so the above plan works fine*. *In the interest of completeness, the
original demo code can be made to work sensibly on modern web2py (2.9.11).
So you can remove the code in the controller and (essentially) paste it
into a view. But a few corrections are needed - the major ones being adding
Excellent - thanks. I'll pursue that approach. I (now) see that the
generic.pdf in the welcome app is completely different from those I've been
looking at (in that pypdf demo). Are there any up to date sample code
snippits around? (I did check the web2py manual, but didn't see anything in
there
Nothing is broken that demo app is just outdated. You can have an HTML view
that will make the table you want and then you can use the generic.pdf view
to generate the pdf using that HTML. Make sure to add
'controller/function.pdf' to your response.generic_patterns.
--
Resources:
- http://web2
5 matches
Mail list logo