Problem with dtml-sendmail from external method
I have two DTML Methods: --------------------------------- <dtml-sendmail smtphost="xxx"> To: <dtml-var tolist> From: xxx Subject: <dtml-var subject> <dtml-var body> </dtml-sendmail> --------------------------------- To: <dtml-var tolist> From: xxx Subject: <dtml-var subject> <dtml-var body> </dtml-sendmail> --------------------------------- (fill in the 'xxx's) When I call either from a form or via xml-rpc they work properly. However, when I call the one with the dtml-sendmail tags from an external method, it triggers an exception (the second version does not trigger an exception). For instance: self.test(tolist=towhom, subject=subject, body=message)
Fault: Fault -2: 'Unexpected Zope error value: Error Type: AttributeError Error Value: this
Evidently the dtml-sendmail tag is looking for this(), probably in globals, which is provided by the xml-rpc or dtml->dtml calls? What is the recommended way of providing this information? Thanks
Kent Polk wrote:
For instance: self.test(tolist=towhom, subject=subject, body=message)
perhaps try: self.test(self, REQUEST=None, tolist=towhom, subject=subject, body=message) If that fails, stick it in the collector as it's the sendmail tag being mucky and nasty again ;-) Chris
Chris Withers wrote:
Kent Polk wrote:
For instance: self.test(tolist=towhom, subject=subject, body=message)
perhaps try: self.test(self, REQUEST=None, tolist=towhom, subject=subject, body=message)
Failed. I had already tried that and a few of the other typicals, including assignment outside the sendmail tag (hoping for an acquisition problem).
If that fails, stick it in the collector as it's the sendmail tag being mucky and nasty again ;-)
It's in the Collector. Thanks
participants (3)
-
Chris Withers -
Kent Polk -
kent@tiamat.goathill.org