I just upgraded my Zope from 2.5.1 to 2.6.0 and started receiving this error message from some dtml-sendmail code:

Error Type: TypeError
Error Value: an integer is required

No traceback is given.  Here’s my original DTML-METHOD

 

<dtml-sendmail mailhost="Mailhost">

To:<dtml-var To>

From:<dtml-var From>

Date:<dtml-var “_.DateTime()”>

Subject:<dtml-var Subject>

<dtml-var Message>

</dtml-sendmail>

 

I toyed with it for a few hours and the only thing I could conclude was that it doesn’t like the Date value (it wants an int, as you can see above), and if I remove the Date field (which isn’t required anyway (or is it now?) ) I’m left with the following error message:

 

Error Type: NameError
Error Value: global name 'localzone' is not defined

 

I’ve tried to find the DTML-Sendmail code in the python libraries to see if I could figure out what it wants, but haven’t found it yet.  Can anyone toss me a clue as to the possible cure/cause for this?

 

D