[Zope] DateTime.DateTime() and localhost not found

beno zope@thewebsons.com
Thu, 02 Jan 2003 17:33:13 -0400


Hi;
Got this error when trying to run a script in MailHost that has worked=20
before with an older version of Zope:

=B7       Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
__traceback_info__: here.mailScript()
=B7       Module Python expression "here.mailScript()", line 2, in f
=B7       Module Shared.DC.Scripts.Bindings, line 252, in __call__
=B7       Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
=B7       Module Products.PythonScripts.PythonScript, line 315, in _exec
=B7       Module Script (Python), line 51, in mailScript
<PythonScript at /Formulator_With_ZPT/mailScript>
Line 51
=B7       Module Products.MailHost.MailHost, line 123, in send
=B7       Module Products.MailHost.MailHost, line 208, in _mungeHeaders
=B7       Module DateTime.DateTime, line 1441, in rfc822
NameError: global name 'localzone' is not defined (Also, an error occurred=
=20
while attempting to render the standard error message.)

What to do?
TIA,
beno