[Zope] (no subject)

sathya linuxcraft@redspice.com
Sat, 25 Mar 2000 01:52:44 -0600


On Thu, 23 Mar 2000, you wrote:> "Felipe E. Barousse Boue" wrote:
> 
> 
> > I need to print from Zope with a specific printing format (like
> > invoices, receipts, etc).  This will be done on always the same Intranet
> > and printing will be controlled from the Linux spooling system.
> 
If your printer is setup is fine you can write the zope output to a file and
print it  using an external method 
If you can name your printale docs with .prt
modify the  DTMLDocument.py  __call__ method
r=apply(HTML.__call__, (self, (client, bself), REQUEST), kw)
pos = find(self.__name__, ".prt")
if pos >= 0:
redt = PrintJob(r)
Where PrintJOb is a python method that will write to a file and lpr it. If you
want the html  printed after rendering then using the pdf generator is a better
bet 
-- 
##########################
necessity is the 
mother of invention
##########################