[Zope-dev] MailHost, 2.2.1, and tracebacks

Bill Anderson bill@libc.org
Thu, 31 Aug 2000 23:35:21 -0600


OK, I've bee trailing this bug for quite some time, and haven't found a solution other than not use 2.2.1 :(


In PortalMembership's acl_users folder's MailPassword Process ...
We have mailPasswordTemplate.

==========
<dtml-var standard_html_header>
<dtml-call "REQUEST.set('MailHost', MailHost)">
<dtml-sendmail mailhost="MailHost">
From: "&dtml-email_from_name;" <&dtml-email_from_address>
To: <dtml-var email>
Subject: Membership reminder

Your password: <dtml-var password>

Request made by IP <dtml-var "REQUEST.REMOTE_ADDR"> at <dtml-var ZopeTime>
</dtml-sendmail>
<p>Your password has been mailed.  It should arrive in your mailbox momentarily.</p>
<dtml-var standard_html_footer>
=========

And when called via the mailPassword method I get:
===============================
Traceback (innermost last):
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /local/ZopeSites/TestBed/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook
    (Object: Transactional)
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: mailPassword)
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 112, in call_object
    (Object: mailPassword)
  File /local/ZopeSites/TestBed/lib/python/Products/PythonMethod/PythonMethod.py, line 168, in __call__
    (Object: mailPassword)
    (Info: ((<LoginManager instance at 8689058>, 'Bill2',#Isnippedformcontents#), {}, None))
  File <string>, line 10, in mailPassword
    (Object: Transactional)
  File /local/ZopeSites/TestBed/lib/python/OFS/DTMLMethod.py, line 172, in __call__
    (Object: mailPasswordTemplate)
  File /local/ZopeSites/TestBed/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__
    (Object: mailPasswordTemplate)
  File /local/ZopeSites/TestBed/lib/python/Products/MailHost/SendMailTag.py, line 182, in render
    (Object: MailHost)
  File /local/ZopeSites/TestBed/lib/python/OFS/DTMLMethod.py, line 194, in validate
    (Object: mailPasswordTemplate)
  File /local/ZopeSites/TestBed/lib/python/AccessControl/SecurityManager.py, line 139, in validate
  File /local/ZopeSites/TestBed/lib/python/AccessControl/ZopeSecurityPolicy.py, line 178, in validate
  File /local/ZopeSites/TestBed/lib/python/AccessControl/Owned.py, line 152, in getOwner
    (Object: mailPasswordTemplate)
ValueError: (see above)
===================


The exact same code (copy->paste, also prior product) works under 2.2.0.
Also, for some reason, I have to have a MailHost in the acl_users folder, and that shouldn't be...I have one in root.

Grumpily, Bill

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.