Re: Create a Multilanguage PDF in Python

2006-08-23 Thread Perseo
Hi Rob this is my code: #!/usr/bin/python import time, os, sys from reportlab.pdfbase import pdfmetrics from reportlab.pdfbase.ttfonts import TTFont from reportlab.pdfgen import canvas from reportlab.lib.units import inch, cm from reportlab.lib.pagesizes import A4 #precalculate some basics top_

Re: Create a Multilanguage PDF in Python

2006-08-23 Thread Perseo
It's too difficult for me, anyone can help me contact me thru chat or something else, please. It drives me crazy! Perseo wrote: > PERFECT! Done! Thanks > Now I create a little file in pdf format but the data are in the MySql > database! :( > How can I connect to it? > > Thanks for all suggestions

Re: Create a Multilanguage PDF in Python

2006-08-23 Thread Perseo
PERFECT! Done! Thanks Now I create a little file in pdf format but the data are in the MySql database! :( How can I connect to it? Thanks for all suggestions Perseo Rob Wolfe wrote: > Perseo wrote: > > Nothing to do! > > I enable test2.py and the folder with 777 permission and I write at the > >

Re: Create a Multilanguage PDF in Python

2006-08-23 Thread Rob Wolfe
Perseo wrote: > Nothing to do! > I enable test2.py and the folder with 777 permission and I write at the > top of the file the PYTHONPATH "#!/usr/bin/python" as you told me but > it doesn't works as well. #!/usr/bin/python is not PYTHONPATH. I think you should read this: http://docs.python.org/tu

Re: Create a Multilanguage PDF in Python

2006-08-22 Thread Perseo
Nothing to do! I enable test2.py and the folder with 777 permission and I write at the top of the file the PYTHONPATH "#!/usr/bin/python" as you told me but it doesn't works as well. this is my organization: www.domain.com/python/reportlab/ [all files] www.domain.com/python/test2.py #!/usr/bin/p

Re: Create a Multilanguage PDF in Python

2006-08-22 Thread Perseo
Thanks I will try it. Diez B. Roggisch wrote: > Perseo wrote: > > > I can't upload in the PYTHONPATH but in a normal folder of our site. > > Exist another way to do it? > > PYTHONPATH is an environment variable. You can set it to arbitrary paths, > and python will look for module there, too. Or yo

Re: Create a Multilanguage PDF in Python

2006-08-21 Thread Diez B. Roggisch
Perseo wrote: > I can't upload in the PYTHONPATH but in a normal folder of our site. > Exist another way to do it? PYTHONPATH is an environment variable. You can set it to arbitrary paths, and python will look for module there, too. Or you modify sys.path before you try the import. Diez -- http

Re: Create a Multilanguage PDF in Python

2006-08-21 Thread Perseo
I can't upload in the PYTHONPATH but in a normal folder of our site. Exist another way to do it? Thanks Rob Wolfe wrote: > Perseo wrote: > > Hi again, > > > > WORKS!!! I download all I need as python + reportlab. Only 2 questions: > > > > 1. I need all of this package? because it is 6Mb! > > I'm a

Re: Create a Multilanguage PDF in Python

2006-08-21 Thread Rob Wolfe
Perseo wrote: > Hi again, > > WORKS!!! I download all I need as python + reportlab. Only 2 questions: > > 1. I need all of this package? because it is 6Mb! I'm afraid you need all of it. BTW My reportlab package is only 3MB... hmm strange. > 2. How can I connect my software with MySql. In my Hos

Re: Create a Multilanguage PDF in Python

2006-08-20 Thread Perseo
Hi Rob, thank you for your answer, but I'm a newbie in Web application written in Python. Now I try your suggestion ... Thanks Perseo Rob Wolfe wrote: > "Perseo" <[EMAIL PROTECTED]> writes: > > > Hi guys, > > > > I'm disprate with the Pdf Unicode. I try to create a class using ufpdf > > but som

Re: Create a Multilanguage PDF in Python

2006-08-20 Thread Perseo
Hi again, WORKS!!! I download all I need as python + reportlab. Only 2 questions: 1. I need all of this package? because it is 6Mb! 2. How can I connect my software with MySql. In my Hosting is present the Python support but I don't thing that the MySQLdb is present. How can I solve this little

Re: Create a Multilanguage PDF in Python

2006-08-20 Thread Rob Wolfe
"Perseo" <[EMAIL PROTECTED]> writes: > Hi guys, > > I'm disprate with the Pdf Unicode. I try to create a class using ufpdf > but some chars are not correct and now I would like try Python because > a friend tolds me that it's very powerful. > I need a simple script in Python that grab all Records