Hi:

In this post i report my experience with Reportlab in Zope:

1.
 Install the Reportlab package in /usr/local/Zope/lib/python1.5 directory

2.
in the Zope directory i create a sub folder ./pdffiles

and:

> cd /usr/local/Zope/pdffiles
> su
> chmod 777

3.
 in the Extensions folder i create

#######################
#    mymodule.py
#######################
import string
from reportlab.pdfgen.canvas import Canvas
from reportlab.lib.pagesizes import A3, landscape 
from reportlab.pdfgen.textobject import PDFTextObject
from types import *

def helloworld():
        c = Canvas("./pdffiles/helloworld.pdf", pagesize=landscape(A3), bottomup=0)
        c.setFont("Times-Roman", 12.0, leading=10.0)
        c.drawString(100,100, "Hello World")
        c.showPage()
        c.save()
########################

4.
In Zope:

        External module:
                ID: HelloW
                function: helloworld
                module: mymodule

        Local File System
                ID: Hello
                patch: /usr/local/Zope/pdffiles

        DTML Method:
                ID: HelloWorld

                ....
                <dtml-call "HelloW">
                <a href="Hello"> See the pdf file </a>
                ...

My question is:

        How i can insert the contents of the Local File System in to HTML environment?


Have a nice day

Jorge


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to