Hi, all. I'm setting up a system where I need to be able to email an HTML report upon demand to an arbitrary email address. I found this script on the 'net, which looks to be just the thing I need. However, I can't figure out how to invoke it. I've attached the script (and it's called sendreport in my zope installation), and here is the piece of python script that calls it: context.sendreport(email='me@myemail.com', emailtype='1', \ reportid='summary', disclaimer_text='') When I execute this, I get a key error on 'summary'. summary is a page template (which requires no parameters) which builds an HTML page. Am I missing something? How can I get this to work? Thanks in advance, Colin -- Colin Fox cfox@cfconsulting.ca CF Consulting Inc. GPG Fingerprint: D8F0 84E7 E7CC 5C6C 9982 F1A7 A3EB 6EA3 BC97 572F
Colin Fox wrote:
context.sendreport(email='me@myemail.com', emailtype='1', \ reportid='summary', disclaimer_text='')
..as sendreport is a DTML method, this isn't correct. it should be: context.sendreport(context,context.REQUEST, email='me@myemail.com', emailtype='1', \ reportid='summary', disclaimer_text='') cheers, Chris
participants (2)
-
Chris Withers -
Colin Fox